ci searcher: same search behavior as 1.18

fixup of c7db03fa04
This commit is contained in:
Subhraman Sarkar 2025-03-14 16:43:36 +05:30
parent c7db03fa04
commit 38168bbfc4

View File

@ -41,13 +41,16 @@ inline auto make_ci_matcher(const std::vector<std::string>& keywords)
return true;
}
bool matched = false;
for(const auto& keyword : keywords) {
if (translation::ci_search(keyword, text)) {
return true;
bool matched2 = true;
for(const auto& word : utils::split(text, ' ')) {
matched2 = matched2 && translation::ci_search(keyword, word);
}
matched = matched || matched2;
}
return false;
return matched;
};
}