mattyork / fuzzy

Filters a list based on a fuzzy string search
MIT License
831 stars 86 forks source link

undefined is not a function (evaluating 'string.toLowerCase()') #27

Closed justinireland closed 8 years ago

justinireland commented 8 years ago

I'm getting the error with the following trace: match fuzzy.js: 50

fuzzy.js: 120 filter fuzzy.js :115 as soon as I try to filter for even a single character. I've verified my input is a string and the list I'm filtering against is an array of objects with only string values. Sorry I cannot cut and paste the error msgs as I'm using this in a React Native app and the error is reported in the Android emulator.
nicolaerusan commented 8 years ago

Hit the same issue :)

mattyork commented 8 years ago

I'm assuming this is an issue with using the keyword "string". Changing the var name. We'll see if that works.

justinireland commented 8 years ago

I updated and now I'm getting the same error except 'str.toLowerCase()'

Maybe lets confirm the issue is fixed before closing it.