master
Aevann1 2021-10-01 02:25:12 +02:00
parent 127b2a0b43
commit c33b5137c0
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ def sanitize(sanitized, noimages=False):
for i in re.finditer("<p>\s*((:\w+:)\s*)+<\/p>", sanitized):
old = i.group(0)
emojis = i.group(0).lower().replace("<p>", "<p style='margin-bottom:0 !important'>")
emojis = old.lower().replace("<p>", "<p style='margin-bottom:0 !important'>")
for i in re.finditer('\w*(?<!"):([^ ]{1,30}?):', emojis):
emoji = i.group(1).lower()
if path.isfile(f'./files/assets/images/emojis/{emoji}.webp'):