diff --git a/files/helpers/const.py b/files/helpers/const.py index 202f72989..9ce6daf06 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -824,7 +824,7 @@ emoji_regex3 = re.compile(f"(?([\w:~,()\-.#&\/=?@%;+]{5,250})<\/a>', flags=re.A) -email_regex = re.compile('[^@]+@[^@]+\.[^@]+', flags=re.A) +email_regex = re.compile('[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}', flags=re.A|re.I) utm_regex = re.compile('utm_[a-z]+=[a-z0-9_]+&', flags=re.A) utm_regex2 = re.compile('[?&]utm_[a-z]+=[a-z0-9_]+', flags=re.A)