fsd'
This commit is contained in:
parent
762e062427
commit
fcc8927195
1 changed files with 1 additions and 0 deletions
|
@ -217,6 +217,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>')
|
||||||
|
|
||||||
|
print(sanitized)
|
||||||
for i in re.finditer(r"^(\s+)?((:[\w]+:)+(\s+)?)+", sanitized):
|
for i in re.finditer(r"^(\s+)?((:[\w]+:)+(\s+)?)+", sanitized):
|
||||||
print(i)
|
print(i)
|
||||||
emojis = i.group(0).lower()
|
emojis = i.group(0).lower()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue