From 791b71425fc00bc1a2c59da69f2470680df67441 Mon Sep 17 00:00:00 2001 From: rlx Date: Wed, 2 Aug 2017 18:44:32 +0200 Subject: [PATCH] fix is_asian_name --- ox/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox/text.py b/ox/text.py index 83885e8..ef3b5a6 100644 --- a/ox/text.py +++ b/ox/text.py @@ -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: