mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 10:57:58 +00:00
python: Mark regexes as raw strings.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Anders Kaseorg
parent
84db245e3f
commit
96fbe060a6
@@ -36,7 +36,7 @@ def get_email_gateway_message_string_from_address(address: str) -> str:
|
||||
if settings.EMAIL_GATEWAY_EXTRA_PATTERN_HACK:
|
||||
# Accept mails delivered to any Zulip server
|
||||
pattern_parts[-1] = settings.EMAIL_GATEWAY_EXTRA_PATTERN_HACK
|
||||
match_email_re = re.compile("(.*?)".join(pattern_parts))
|
||||
match_email_re = re.compile(r"(.*?)".join(pattern_parts))
|
||||
match = match_email_re.match(address)
|
||||
|
||||
if not match:
|
||||
|
||||
Reference in New Issue
Block a user