Skip to content

Commit

Permalink
REGEX to match non-latin chars too
Browse files Browse the repository at this point in the history
  • Loading branch information
glogiotatidis authored Jun 14, 2021
1 parent 9161038 commit fb7ef1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vcardlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
REGEX_NAME_IN_EMAIL = re.compile('^ *"(?P<name>[^"]+)" *<[^>]+> *$')
REGEX_EMAIL_WITH_NAME = re.compile('^ *"[^"]+" *<(?P<email>[^>]+)> *$')
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']
Expand Down

0 comments on commit fb7ef1c

Please sign in to comment.