From 3cc3693b9a0b21a458f7c7d7a41ad1a2c55a206d Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 17 Mar 2021 02:26:34 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20#100=20by=20using=20re.DOT?= =?UTF-8?q?ALL=20in=20all=20regexes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker.py b/worker.py index 4228fee..0c2c5a2 100644 --- a/worker.py +++ b/worker.py @@ -307,7 +307,7 @@ class Worker(threading.Thread): if update.message.text is None: continue # Try to match the regex with the received message - match = re.search(regex, update.message.text) + match = re.search(regex, update.message.text, re.DOTALL) # Ensure there is a match if match is None: continue