Skip to content

Commit

Permalink
porting hotfix from internal repo (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet authored Nov 9, 2023
1 parent 5781a1b commit 22066df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artemis/mail_check/translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def _translate_using_dictionary(
and will have the same order of placeholders.
"""
for m_from, m_to in dictionary:
pattern = "^" + re.escape(m_from).replace(PLACEHOLDER, "(.|\n)*") + "$"
pattern = "^" + re.escape(m_from).replace(PLACEHOLDER, "((?:.|\n)*)") + "$"
regexp_match = re.match(pattern, message)

# a dictionary rule matched the message
Expand Down

0 comments on commit 22066df

Please sign in to comment.