more exclusion for torture_regex

pull/130/head
Aevann 2023-02-20 20:42:21 +02:00
parent e7141796bc
commit ce52c59e4f
1 changed files with 1 additions and 1 deletions

View File

@ -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*(>|<blockquote>)', flags=re.A)
torture_regex_exclude = re.compile('^\s*(>|`|<blockquote>|<codeblock>|<pre>)', flags=re.A)
image_check_regex = re.compile(f'!\[\]\(((?!(https:\/\/([a-z0-9-]+\.)*({hosts})\/|\/)).*?)\)', flags=re.A)