forked from MarseyWorld/MarseyWorld
dfs
parent
a1e9460161
commit
a57958f112
|
@ -217,8 +217,9 @@ 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.findall(r"^(\s+)?((:[\w]+:)+(\s+)?)+", sanitized):
|
||||
emojis = i.lower()
|
||||
for i in re.finditer(r"^(\s+)?((:[\w]+:)+(\s+)?)+", sanitized):
|
||||
print(i)
|
||||
emojis = i.group(0).lower()
|
||||
print(emojis)
|
||||
for i in re.finditer('\w*(?<!"):([^ ]{1,30}?):', emojis):
|
||||
emoji = i.group(1)
|
||||
|
|
Loading…
Reference in New Issue