remotes/1693045480750635534/spooky-22
Aevann1 2021-09-30 23:41:49 +02:00
parent d1148de392
commit 17002a41be
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ def sanitize(sanitized, noimages=False):
if start in sanitized and end in sanitized and start in sanitized.split(end)[0] and end in sanitized.split(start)[1]: sanitized = sanitized.replace(start, '<span class="spoiler">').replace(end, '</span>')
for i in re.finditer("^(\s+)?((:[\w]+:)+(\s+)?)+$", sanitized.replace("<p>", "").replace("</p>", ""), re.MULTILINE):
for i in re.finditer("^\s*((:\w+:)\s*)+$", sanitized.replace("<p>", "").replace("</p>", ""), re.MULTILINE):
emojis = i.group(0).lower()
for i in re.finditer('\w*(?<!"):([^ ]{1,30}?):', emojis):
emoji = i.group(1).lower()