mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 23:04:26 +01:00
Add support for back/slashes
This commit is contained in:
parent
3f41681b18
commit
2d8f9a9849
@ -47,7 +47,7 @@ fn classify_separator(c: char) -> Option<SeparatorCategory> {
|
|||||||
c if c.is_whitespace() => Some(Soft), // whitespaces
|
c if c.is_whitespace() => Some(Soft), // whitespaces
|
||||||
c if deunicode_char(c) == Some("'") => Some(Soft), // quotes
|
c if deunicode_char(c) == Some("'") => Some(Soft), // quotes
|
||||||
c if deunicode_char(c) == Some("\"") => Some(Soft), // double quotes
|
c if deunicode_char(c) == Some("\"") => Some(Soft), // double quotes
|
||||||
'-' | '_' | '\'' | ':' => Some(Soft),
|
'-' | '_' | '\'' | ':' | '/' | '\\' => Some(Soft),
|
||||||
'.' | ';' | ',' | '!' | '?' | '(' | ')' => Some(Hard),
|
'.' | ';' | ',' | '!' | '?' | '(' | ')' => Some(Hard),
|
||||||
_ => None,
|
_ => None,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user