From 10fb5d2d9f62290f5be36f77fb486b1f06d2ca15 Mon Sep 17 00:00:00 2001 From: Chuck Date: Wed, 9 Aug 2023 22:01:07 -0700 Subject: [PATCH 1/2] Quick change to double the emoji regex since I've added a shitload of new modifiers that can all be used together --- files/helpers/regex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/regex.py b/files/helpers/regex.py index ba0d16a65..2c18a8a4c 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -50,8 +50,8 @@ strikethrough_regex = re.compile('(^|\s|>|")~{1,2}([^~]+)~{1,2}' + NOT_IN_CODE_O mute_regex = re.compile("\/mute @?([\w\-]{3,30}) ([0-9]+)", flags=re.A|re.I) -emoji_regex = re.compile(f"

\s*(:[!#@\w\-]{{1,36}}:\s*)+<\/p>", flags=re.A) -emoji_regex2 = re.compile(f'(?|[^`]*`))', flags=re.A) +emoji_regex = re.compile(f"

\s*(:[!#@\w\-]{{1,72}}:\s*)+<\/p>", flags=re.A) +emoji_regex2 = re.compile(f'(?|[^`]*`))', flags=re.A) snappy_url_regex = re.compile('(.+?)<\/a>', flags=re.A) snappy_youtube_regex = re.compile('