logs-spy: don't ignore space when cleaning

This commit is contained in:
Ave Ozkal 2019-03-05 20:30:55 +03:00
parent 9d9c8d2104
commit befa18c4de
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

@ -16,7 +16,7 @@ class Logs(Cog):
self.invite_re = re.compile(r"((discord\.gg|discordapp\.com/" self.invite_re = re.compile(r"((discord\.gg|discordapp\.com/"
r"+invite)/+[a-zA-Z0-9-]+)") r"+invite)/+[a-zA-Z0-9-]+)")
self.name_re = re.compile(r"[a-zA-Z0-9].*") self.name_re = re.compile(r"[a-zA-Z0-9].*")
self.clean_re = re.compile(r'[\W_]+', re.UNICODE) self.clean_re = re.compile(r'[^a-zA-Z0-9_ ]+', re.UNICODE)
# All lower case, no spaces, nothing non-alphanumeric # All lower case, no spaces, nothing non-alphanumeric
self.susp_words = ["sx", "tx", "reinx", # piracy-enabling cfws self.susp_words = ["sx", "tx", "reinx", # piracy-enabling cfws
"tinfoil", "dz", # title managers "tinfoil", "dz", # title managers