From 18176630efaa43ec2c07758d7aea1a678109da42 Mon Sep 17 00:00:00 2001 From: rlx Date: Wed, 2 Aug 2017 19:51:14 +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 c715d00..482cb88 100644 --- a/ox/text.py +++ b/ox/text.py @@ -306,7 +306,7 @@ def get_sort_name(name): return len(first_names) and first_names[-1].lower() in names if is_asian_name(name): - names = name.replace('-').split(' ') + names = name.replace('-', ' ').split(' ') if len(names) == 2: if names[0].lower() in ASIAN_LAST_NAMES: lastname, firstname = names