From ef42a04a35dd208722fbbd90d13a86e0cd5d8d4b Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Thu, 11 Dec 2014 15:08:03 -0800 Subject: [PATCH] more aggressive sub-matching so 'ascendingp' matches 'the ascending phoeenix' --- tradedb.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tradedb.py b/tradedb.py index 4641ec78..356d75ee 100644 --- a/tradedb.py +++ b/tradedb.py @@ -691,11 +691,6 @@ def lookup(name, candidates): anyMatch.append(place) continue - if not placeNameNorm.startswith(nameNorm[0]): - # Optimization: check if the first letters - # match before we attempt - continue - # Lets drop whitespace and remaining punctuation... placeNameTrimmed = placeNameNorm.translate(trimTrans) placeNameTrimmedLen = len(placeNameTrimmed)