Closed jessegrosjean closed 11 months ago
You are using Config::DEFAULT
which has normalization turned on.
pub const DEFAULT: Config = {
Config{
delimiter_chars: b"/,:;|",
bonus_boundary_white: BONUS_BOUNDARY + 2,
bonus_boundary_delimiter: BONUS_BOUNDARY + 1,
initial_char_class: CharClass::Whitespace,
normalize: true,
ignore_case: true,
prefer_prefix: false,}
}
This will convert non ascii characters to ascii, so turning it off should solve this.
let mut conf = Config::DEFAULT;
conf.normalize = false;
Thanks for your help, that solve the problem for me.
For example I notice that a needle
ë
fails to fuzzy matchbë
. On the other hand a needlee
will matchbë
, and a needleë
will match a haystackë
.Is that expected or a bug? If expected can you say a bit more about why and suggested workarounds... mostly just so I can document to people using my app why it works the way that it does.
Thank you.