mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-23 05:14:27 +01:00
fix: Do not consider underscores and middle dash hard
This commit is contained in:
parent
ca818e12a9
commit
175b3dcb75
@ -39,8 +39,8 @@ fn is_separator(c: char) -> bool {
|
|||||||
|
|
||||||
fn classify_separator(c: char) -> Option<SeparatorCategory> {
|
fn classify_separator(c: char) -> Option<SeparatorCategory> {
|
||||||
match c {
|
match c {
|
||||||
' ' | '\'' | ':' | '"' => Some(Soft),
|
' ' | '-' | '_' | '\'' | ':' | '"' => Some(Soft),
|
||||||
'.' | ';' | ',' | '!' | '?' | '-' | '_' | '(' | ')' => Some(Hard),
|
'.' | ';' | ',' | '!' | '?' | '(' | ')' => Some(Hard),
|
||||||
_ => None,
|
_ => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user