fix is_asian_name

This commit is contained in:
rlx 2017-08-02 18:44:32 +02:00
parent b905003a9e
commit 791b71425f

View file

@ -381,7 +381,7 @@ def find_string(string, string0='', string1=''):
return find_re(string, string0 + '(.*?)' + string1)
def is_asian_name(name):
names = name.lower().split(' ')
names = name.replace('-', ' ').lower().split(' ')
if len(names) != 3:
return False
if names[0] in ASIAN_FIRST_NAMES and names[1] in ASIAN_FIRST_NAMES: