refine email regex to not include whitespace
This commit is contained in:
@@ -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():
|
||||
|
Reference in New Issue
Block a user