From fb7ef1c1945c29eebb1e3bfec7d3c8d4a3003018 Mon Sep 17 00:00:00 2001 From: Giorgos Logiotatidis Date: Mon, 14 Jun 2021 13:02:36 +0300 Subject: [PATCH] REGEX to match non-latin chars too --- vcardlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']