diff --git a/zerver/lib/mention.py b/zerver/lib/mention.py index 4657a8f844..0d03d27a7f 100644 --- a/zerver/lib/mention.py +++ b/zerver/lib/mention.py @@ -18,7 +18,7 @@ USER_GROUP_MENTIONS_RE = re.compile( rf"{BEFORE_MENTION_ALLOWED_REGEX}@(?P_?)(\*(?P[^\*]+)\*)" ) -wildcards = ["all", "everyone", "stream"] +wildcards = frozenset(["all", "everyone", "stream"]) @dataclass