Skip to content

armgit / zulip

Public Imported from GitHub
0

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.py
index 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