Skip to content

Commit

Permalink
more aggressive sub-matching so 'ascendingp' matches 'the ascending p…
Browse files Browse the repository at this point in the history
…hoeenix'
  • Loading branch information
kfsone committed Dec 11, 2014
1 parent bd73e5e commit ef42a04
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tradedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ef42a04

Please sign in to comment.