From 54acf88a9054762d516eb8bd3aeb3b4f0eee8fbb Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 30 Sep 2021 23:36:11 +0200 Subject: [PATCH] sfddsf --- files/helpers/sanitize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 4bf68131c..2b1eda90e 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -213,7 +213,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, '') - for i in re.finditer("^(\s+)?((:[\w]+:)+(\s+)?)+", sanitized.replace("

", "").replace("

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

", "").replace("

", ""), re.MULTILINE): emojis = i.group(0).lower() for i in re.finditer('\w*(?