refine email regex to not include whitespace

This commit is contained in:
2020-08-04 10:10:48 -05:00
parent 73dae54cf1
commit 51e9782c7e

View File

@@ -90,7 +90,7 @@ DO_NOT_ARCHIVE_BOARDS = [
]
# Regexes for sensitive information
EMAIL_REGEX = re.compile(r"'[^']+@[^']+'")
EMAIL_REGEX = re.compile(r"'[^'\s]+@[^'\s]+'")
IP_REGEX = re.compile(r"'\d+\.\d+\.\d+\.\d+'")
class Database():