Fix test.
Some checks failed
tests / test (push) Has been cancelled

This commit is contained in:
Kishore Nallan 2024-10-03 21:06:10 +05:30
parent bef7dc233e
commit d60098a6ab

View File

@ -3390,7 +3390,10 @@ void Collection::process_tokens(std::vector<std::string>& tokens, std::vector<st
bool end_of_phrase = false;
if(token == "-" && !symbols_to_index_has_minus) {
exclude_operator_prior = true;
if(locale != "en" && !locale.empty()) {
// non-English locale parsing splits "-" as individual tokens
exclude_operator_prior = true;
}
continue;
} else if(token[0] == '-' && !symbols_to_index_has_minus) {
exclude_operator_prior = true;