forked from rDrama/rDrama
fds
parent
c02b37db9e
commit
5aa7fe63e6
|
@ -218,6 +218,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>')
|
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.findall("^(\s+)?((:[\w]+:)+(\s+)?)+", sanitized.replace("<p>", "").replace("</p>", ""), re.MULTILINE):
|
for i in re.findall("^(\s+)?((:[\w]+:)+(\s+)?)+", sanitized.replace("<p>", "").replace("</p>", ""), re.MULTILINE):
|
||||||
|
print(emojis)
|
||||||
emojis = i.lower()
|
emojis = i.lower()
|
||||||
for i in re.finditer('\w*(?<!"):([^ ]{1,30}?):', emojis):
|
for i in re.finditer('\w*(?<!"):([^ ]{1,30}?):', emojis):
|
||||||
emoji = i.group(1).lower()
|
emoji = i.group(1).lower()
|
||||||
|
|
Loading…
Reference in New Issue