Forgot not so it was stripping alnum chars, not non-almun chars

This commit is contained in:
jesopo 2019-05-23 16:05:41 +01:00
parent f0230eb001
commit 4b5f839231

View file

@ -9,7 +9,7 @@ REGEX_ARG_NUMBER = re.compile(r"\$(\d+)(-?)")
MSGID_TAG = utils.irc.MessageTag("msgid", "draft/msgid")
NON_ALPHANUMERIC = [char for char in string.printable if char.isalnum()]
NON_ALPHANUMERIC = [char for char in string.printable if not char.isalnum()]
def _command_method_validate(s):
if s.upper() in COMMAND_METHODS: