fix is_asian_name
This commit is contained in:
parent
b905003a9e
commit
791b71425f
1 changed files with 1 additions and 1 deletions
|
@ -381,7 +381,7 @@ def find_string(string, string0='', string1=''):
|
||||||
return find_re(string, string0 + '(.*?)' + string1)
|
return find_re(string, string0 + '(.*?)' + string1)
|
||||||
|
|
||||||
def is_asian_name(name):
|
def is_asian_name(name):
|
||||||
names = name.lower().split(' ')
|
names = name.replace('-', ' ').lower().split(' ')
|
||||||
if len(names) != 3:
|
if len(names) != 3:
|
||||||
return False
|
return False
|
||||||
if names[0] in ASIAN_FIRST_NAMES and names[1] in ASIAN_FIRST_NAMES:
|
if names[0] in ASIAN_FIRST_NAMES and names[1] in ASIAN_FIRST_NAMES:
|
||||||
|
|
Loading…
Reference in a new issue