diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index ee4c534a8..c7b06a318 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -178,11 +178,9 @@ def sanitize(text, linkgen=False, flair=False): end = '</s>' 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, '').replace(end, '') - print(sanitized) - for i in re.finditer('
:(.{1,30}?):
', sanitized): if path.isfile(f'./files/assets/images/emojis/{i.group(1)}.gif'): - sanitized = sanitized.replace(f':{i.group(1)}:', f':{i.group(1)}:
', f'