diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index cffae474e..5257df9c4 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -217,8 +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, '').replace(end, '') - print(sanitized) - for i in re.finditer("^(\s+)?((:[\w]+:)+(\s+)?)+", sanitized.replace("

", "").replace("

", "")): + for i in re.finditer("^(\s+)?((:[\w]+:)+(\s+)?)+", sanitized.replace("

", "").replace("

", ""), re.MULTILINE): print(i) emojis = i.group(0).lower() print(emojis)