comigor / fuzzy

Fuzzy search in Dart
MIT License
37 stars 20 forks source link

Fix search crash tokenize with leading or trailing whitespace strings #5

Closed jnthnklvn closed 4 years ago

jnthnklvn commented 4 years ago

The search is crashing when the list contains some string that has leading or trailing whitespace and tokenize option is true. The fix calls trim() for each element from list when _analyze is called.

comigor commented 4 years ago

Hey @jnthnklvn, thanks for this PR!