Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
mention: Remove deprecated wildcard mention pattern from `MENTIONS_RE`.
akshatdalton738a676534ae
diff --git a/zerver/lib/mention.py b/zerver/lib/mention.pyindex 4c2e18ca4b8..1ea12da872b 100644--- a/zerver/lib/mention.py+++ b/zerver/lib/mention.py@@ -3,7 +3,7 @@ from typing import Optional, Set, Tuple# Match multi-word string between @** ** or match any one-word# sequences after @-MENTIONS_RE = r"(?<![^\s\'\"\(,:<])@(?P<silent>_?)(?P<match>\*\*[^\*]+\*\*|all|everyone|stream)"+MENTIONS_RE = r"(?<![^\s\'\"\(,:<])@(?P<silent>_?)(?P<match>\*\*[^\*]+\*\*)"USER_GROUP_MENTIONS_RE = r"(?<![^\s\'\"\(,:<])@(\*[^\*]+\*)"wildcards = ["all", "everyone", "stream"]