From 0c661839862d2974f13aff5e68380450df5f7e4d Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 18 Aug 2023 21:59:13 +0300 Subject: [PATCH] fix 1-letter and 2-letter names not accounted for --- files/helpers/regex.py | 2 +- files/templates/submit_emojis.html | 2 +- files/templates/submit_hats.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/helpers/regex.py b/files/helpers/regex.py index 77bcfeaab..75b367fb9 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -48,7 +48,7 @@ sub_regex = re.compile('(?|")~{1,2}([^~]+)~{1,2}' + NOT_IN_CODE_OR_LINKS, flags=re.A) -mute_regex = re.compile("\/mute @?([\w\-]{3,30}) ([0-9]+)", flags=re.A|re.I) +mute_regex = re.compile("\/mute @?([\w\-]{1,30}) ([0-9]+)", flags=re.A|re.I) emoji_regex = re.compile(f"

\s*(:[!#@\w\-]{{1,72}}:\s*)+<\/p>", flags=re.A) emoji_regex2 = re.compile(f'(?|[^`]*`))', flags=re.A) diff --git a/files/templates/submit_emojis.html b/files/templates/submit_emojis.html index 0208036b4..de0549b38 100644 --- a/files/templates/submit_emojis.html +++ b/files/templates/submit_emojis.html @@ -38,7 +38,7 @@ - + diff --git a/files/templates/submit_hats.html b/files/templates/submit_hats.html index d0f87f929..49cc570a1 100644 --- a/files/templates/submit_hats.html +++ b/files/templates/submit_hats.html @@ -28,7 +28,7 @@ - +