Closed mannaste closed 5 months ago
One workaround I found is normalizing all letters in the array as well as in the query to latin letters using the deburr function from lodash.
However you loose a little bit of sorting precision with this approach as it can not differentiate between for example "décor" and "decor" anymore.
Hello!
First of all, thank you for a great library.
We have stumbled into a case where searching for one specific name containing special character, does not return a match. For example:
fuzzysort.go("Aasma", targets, { allowTypo: false }).filter(({ _indexes }) => isConsequtive(_indexes))
Result:fuzzysort.go("Ääsma", targets, { allowTypo: false }).filter(({ _indexes }) => isConsequtive(_indexes))
Result:For "Aasma" indexes are consequtive [5,6,7,8,8], but for "Ääsma", it's [0,5,7,8,9].
It would be of great help, if you happened to have any advice on how I could get the result when searching for a name with special characters ("Ääsma")?
For better visualization: https://codepen.io/mnste/pen/bGmaqpj
Thanks in advance!