comigor / fuzzy

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

Fix search crash when empty list #2

Closed lucasmafra closed 4 years ago

lucasmafra commented 4 years ago

Currently the search is crashing when the list is empty due to a RangeError. This commit fix the bug by returning an empty result when the list is empty.