diff --git a/vcardlib.py b/vcardlib.py index 69ba666..130f15b 100644 --- a/vcardlib.py +++ b/vcardlib.py @@ -50,7 +50,7 @@ REGEX_NAME_IN_EMAIL = re.compile('^ *"(?P[^"]+)" *<[^>]+> *$') REGEX_EMAIL_WITH_NAME = re.compile('^ *"[^"]+" *<(?P[^>]+)> *$') REGEX_INVALID_MAIL = re.compile('^nobody[a-z0-9]*@nowhere.invalid$') -REGEX_ONY_NON_ALPHANUM = re.compile('^[ ]*[^a-zA-Z0-9]*[ ]*$') +REGEX_ONY_NON_ALPHANUM = re.compile('^[ ]*[^\w]*[ ]*$') # global options that can be changed by invoking the command line OPTION_MATCH_ATTRIBUTES = ['names', 'tel_!work', 'email']