Turkish has specific rules for how I is lowercased, so some words are not found when expected. For example, the string Satış Teklifleri will not be found when searching for satış teklİflerİ.
Version
6.6.2
Is this a regression?
Not a regression
🔬Minimal Reproduction
const list = [
{ title: 'Satış Teklifleri' }
];
const fuse = new Fuse(list, { keys: ['title'] });
// results should contain 1 result, but contains 0
const results = fuse.search('satış teklİflerİ')
Additional context
This can be fixed by doing a find/replace for toLowerCase -> toLocaleLowerCase. This does require the end user's browser/os locale to be set to Turkish, but I think that is reasonable.
Describe the bug
Turkish has specific rules for how
I
is lowercased, so some words are not found when expected. For example, the stringSatış Teklifleri
will not be found when searching forsatış teklİflerİ
.Version
6.6.2
Is this a regression?
Not a regression
🔬Minimal Reproduction
Additional context
This can be fixed by doing a find/replace for
toLowerCase
->toLocaleLowerCase
. This does require the end user's browser/os locale to be set to Turkish, but I think that is reasonable.