1
Fork 0
mirror of https://github.com/Steffo99/greed.git synced 2024-11-21 21:44:19 +00:00

🐛 Fix #100 by using re.DOTALL in all regexes

This commit is contained in:
Steffo 2021-03-17 02:26:34 +01:00
parent 90e5141727
commit 3cc3693b9a
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -307,7 +307,7 @@ class Worker(threading.Thread):
if update.message.text is None: if update.message.text is None:
continue continue
# Try to match the regex with the received message # 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 # Ensure there is a match
if match is None: if match is None:
continue continue