This commit is contained in:
Aevann1 2021-10-06 11:12:58 +02:00
parent 6223a73d8a
commit a12e6fb123

View file

@ -191,6 +191,7 @@ def sanitize(sanitized, noimages=False):
for i in re.finditer("[^a]>\s*(:!?\w+:\s*)+<\/", sanitized):
old = i.group(0)
if 'marseylong' in old: new = old.lower().replace(">", " style='margin-bottom:0 !important'>")
else: new = old.lower()
for i in re.finditer('\w*(?<!"):([^ ]{1,30}?):', new):
emoji = i.group(1).lower()
if emoji.startswith("!"):