Skip to content

Commit

Permalink
🐛 Fix #100 by using re.DOTALL in all regexes
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffo99 committed Mar 17, 2021
1 parent 90e5141 commit 3cc3693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def __wait_for_regex(self, regex: str, cancellable: bool = False) -> Union[str,
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
Expand Down

0 comments on commit 3cc3693

Please sign in to comment.