From 58c4b621635e52f55a2c287ef1ab3aff7db8add2 Mon Sep 17 00:00:00 2001 From: float-trip <102226344+float-trip@users.noreply.github.com> Date: Thu, 2 Jun 2022 19:18:10 -0400 Subject: [PATCH] Some fixes (#300) * Narrow emoji_regex * Fix mirrored pat emojis * Fix ban icon on posts/comments --- files/helpers/const.py | 2 +- files/routes/admin.py | 8 ++++---- files/templates/util/assetcache.html | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index 3f532ef2c..24672cb20 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -873,7 +873,7 @@ strikethrough_regex = re.compile('''~{1,2}([^~]+)~{1,2}''', flags=re.A) mute_regex = re.compile("/mute @([a-z0-9_\-]{3,25}) ([0-9])+", flags=re.A) -emoji_regex = re.compile(f"[^a]>\s*(:[!#@]{{0,3}}[{valid_username_chars}]+:\s*)+<\/", flags=re.A) +emoji_regex = re.compile(f"

\s*(:[!#@]{{0,3}}[{valid_username_chars}]+:\s*)+<\/p>", flags=re.A) emoji_regex2 = re.compile(f"(?