We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be very helpful if an option could be set so that fuzzy would return strings with and without diacritics.
e.g.: The user searches for "Lumiere"
The result should also include "Lumière":
Lumière Lümière Lumiere Lůmière Lúmière
You won't find "Lumiere" in this official example: http://htmlpreview.github.io/?https://github.com/mattyork/fuzzy/blob/master/examples/disney.html
The text was updated successfully, but these errors were encountered:
I got diacritics to be included in searches by changing 2 places in fuzzy.js where comparisons are done...
Line 50:
- , compareString = opts.caseSensitive && str || str.toLowerCase() + , compareString = opts.caseSensitive && str || str.toLowerCase().normalize("NFKD").replace(/\p{Diacritic}/gu, "") , ch; - pattern = opts.caseSensitive && pattern || pattern.toLowerCase(); + pattern = opts.caseSensitive && pattern || pattern.toLowerCase().normalize("NFKD").replace(/\p{Diacritic}/gu, "");
Sorry, something went wrong.
No branches or pull requests
It would be very helpful if an option could be set so that fuzzy would return strings with and without diacritics.
e.g.: The user searches for "Lumiere"
The result should also include "Lumière":
Lumière
Lümière
Lumiere
Lůmière
Lúmière
You won't find "Lumiere" in this official example:
http://htmlpreview.github.io/?https://github.com/mattyork/fuzzy/blob/master/examples/disney.html
The text was updated successfully, but these errors were encountered: