-
-
Notifications
You must be signed in to change notification settings - Fork 804
Closed
Description
Hi all,
Currently, Fuse doesn't support searching through non-ASCII characters. For instance searching with stro on strömberg only matches str. This could be changed by
- transliterating input to ASCII (e.g.
stro->stro) - transliterating all strings within an item to ASCII when evaluating that item (e.g.
strömberg->stromberg) - performing the match on the transliterated item (e.g.
match [0,3]) - returning original version item + matches (e.g.
strömberg+match [0,3])
This code seems to have a pretty complete transliteration table (see char_map object):
https://github.com/pid/speakingurl/blob/master/lib/speakingurl.js
Not that I have a need for it at the moment, just bringing it up as a suggestion :)
Reactions are currently unavailable