mirror of
https://github.com/zulip/zulip.git
synced 2025-11-08 16:01:58 +00:00
Don't compile an unused copy of the find_mentions regex.
(imported from commit 67e4cd89a5ed038e0e5a7459d5f88aa8d04b21d7)
This commit is contained in:
@@ -6,7 +6,6 @@ import zephyr.models
|
|||||||
# Match multi-word string between @** ** or match any one-word
|
# Match multi-word string between @** ** or match any one-word
|
||||||
# sequences after @
|
# sequences after @
|
||||||
find_mentions = r'(?<![^\s\'\"\(,:<])@(?:\*\*([^\*]+)\*\*|(\w+))'
|
find_mentions = r'(?<![^\s\'\"\(,:<])@(?:\*\*([^\*]+)\*\*|(\w+))'
|
||||||
find_mentions_re = re.compile(find_mentions)
|
|
||||||
|
|
||||||
wildcards = ['all', 'everyone']
|
wildcards = ['all', 'everyone']
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user