forked from MarseyWorld/MarseyWorld
fdsfds
parent
127b2a0b43
commit
c33b5137c0
|
@ -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'):
|
||||
|
|
Loading…
Reference in New Issue