From 69dc1864927920068c4a0e8055e83e4694211916 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 29 Oct 2023 17:41:52 +0300 Subject: [PATCH] torture "Im" too --- 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 dd71850f0..92a6976da 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -57,7 +57,7 @@ snappy_url_regex = re.compile('(.+?)<\/a>', flags= email_regex = re.compile('[A-Za-z0-9._%+-]{1,64}@[A-Za-z0-9.-]{2,63}\.[A-Za-z]{2,63}', flags=re.A) torture_regex = re.compile('(^|\s)(i|me)($|\s)', flags=re.I|re.A) -torture_regex2 = re.compile("(^|\s)(i'm)($|\s)", flags=re.I|re.A) +torture_regex2 = re.compile("(^|\s)(i'?m)($|\s)", flags=re.I|re.A) torture_regex3 = re.compile("(^|\s)(my|mine)($|\s)", flags=re.I|re.A) #matches ". ", does not match "..." or a.b