mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-15 13:58:36 +02:00
Merge pull request #198 from meilisearch/split-by-underscore
Support underscores and colon as split characters
This commit is contained in:
commit
ca818e12a9
1 changed files with 2 additions and 2 deletions
|
@ -39,8 +39,8 @@ fn is_separator(c: char) -> bool {
|
|||
|
||||
fn classify_separator(c: char) -> Option<SeparatorCategory> {
|
||||
match c {
|
||||
' ' | '\'' | '"' => Some(Soft),
|
||||
'.' | ';' | ',' | '!' | '?' | '-' | '(' | ')' => Some(Hard),
|
||||
' ' | '\'' | ':' | '"' => Some(Soft),
|
||||
'.' | ';' | ',' | '!' | '?' | '-' | '_' | '(' | ')' => Some(Hard),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue