diff --git a/files/helpers/regex.py b/files/helpers/regex.py index 83d739779c..e292785331 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -48,8 +48,8 @@ strikethrough_regex = re.compile('(^|\s|>)~{1,2}([^~]+)~{1,2}(?![^<]*<\/(code|pr mute_regex = re.compile("\/mute @?([a-z0-9_\-]{3,30}) ([0-9]+)", flags=re.A|re.I) emoji_regex = re.compile(f"

\s*(:[!#@]{{0,3}}[{valid_username_chars}]+:\s*)+<\/p>", flags=re.A) -emoji_regex2 = re.compile(f'(?)', flags=re.A) -emoji_regex3 = re.compile(f'(?)', flags=re.A) +emoji_regex3 = re.compile(f'(?(.+?)<\/a>', flags=re.A) snappy_youtube_regex = re.compile(')', emoji_html, html) + html = re.sub(f'(?)', emoji_html, html) return html