mirror of https://github.com/zulip/zulip.git
refactor: Convert the 'wildcards' list to a frozenset.
This commit converts the 'wildcards' list to a frozenset, as we never intend to mutate 'wildcards'.
This commit is contained in:
parent
d0c1668399
commit
0ea999b348
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue