farzher / fuzzysort

Fast SublimeText-like fuzzy search for JavaScript.
https://rawgit.com/farzher/fuzzysort/master/test/test.html
MIT License
3.96k stars 159 forks source link

unicode support (search cyrillic, ...) #91

Open dima-stefantsov opened 2 years ago

dima-stefantsov commented 2 years ago

Hi. I've made this modifications for your excellent library to work not only with English (you check character codes to know if it's even alphanumeric). It became a bit slower, but now I let JS/regexp engines decide, if it's a letter. And to check if it's "upper" I need to check "uppercase !== lowercase" for cases of languages where there's no upper cases at all.