remotes/1693045480750635534/spooky-22
Aevann1 2021-10-05 22:38:59 +02:00
parent a2a9335113
commit 52a14de6d3
1 changed files with 3 additions and 1 deletions

View File

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