krisk / Fuse

Lightweight fuzzy-search, in JavaScript
https://fusejs.io/
Apache License 2.0
18.1k stars 766 forks source link

Uncaught TypeError: t.toLowerCase is not a function #251

Closed dharsh90 closed 6 years ago

dharsh90 commented 6 years ago

While passing a nested JS object literal, Fuse keep throwing this error .

Uncaught TypeError: t.toLowerCase is not a function.

screen shot 2018-08-27 at 5 40 33 pm

Did anyone else face this issue ?

dharsh90 commented 6 years ago

The issue was not with Fuse but in my code I was passing a Regex instead of string.