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