mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
Some functions in models.py had input typed as int when they needed to be typed as datetime.datetime
12 lines
325 B
Python
12 lines
325 B
Python
from __future__ import absolute_import
|
|
|
|
# Match multi-word string between @** ** or match any one-word
|
|
# sequences after @
|
|
find_mentions = r'(?<![^\s\'\"\(,:<])@(?:\*\*([^\*]+)\*\*|(\w+))'
|
|
|
|
wildcards = ['all', 'everyone']
|
|
|
|
def user_mention_matches_wildcard(mention):
|
|
# type: (str) -> bool
|
|
return mention in wildcards
|