From ce52c59e4f704cea6344292569d9c4c848897198 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 20 Feb 2023 20:42:21 +0200 Subject: [PATCH] more exclusion for torture_regex --- files/helpers/regex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/regex.py b/files/helpers/regex.py index 5e0b4140b..e29278533 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -66,7 +66,7 @@ profanity_regex_upper = re.compile(f"<[^>]*>|{profanity_single_words.upper()}", torture_regex = re.compile('(^|\s)(i|me) ', flags=re.I|re.A) torture_regex2 = re.compile("(^|\s)i'm ", flags=re.I|re.A) -torture_regex_exclude = re.compile('^\s*(>|
)', flags=re.A) +torture_regex_exclude = re.compile('^\s*(>|`|
||
)', flags=re.A)
 
 
 image_check_regex = re.compile(f'!\[\]\(((?!(https:\/\/([a-z0-9-]+\.)*({hosts})\/|\/)).*?)\)', flags=re.A)