Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
refactor: Convert the 'wildcards' list to a frozenset.
Prakhar Pratyush0ea999b34844
diff --git a/zerver/lib/mention.py b/zerver/lib/mention.pyindex 4657a8f8444..0d03d27a7f2 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<silent>_?)(\*(?P<match>[^\*]+)\*)")-wildcards = ["all", "everyone", "stream"]+wildcards = frozenset(["all", "everyone", "stream"])@dataclass