ci searcher: match entire string instead of chunks (closes #10027)

This commit is contained in:
Subhraman Sarkar 2025-03-14 14:38:02 +05:30
parent c3ef8084d5
commit c7db03fa04

View File

@ -42,10 +42,8 @@ inline auto make_ci_matcher(const std::vector<std::string>& keywords)
}
for(const auto& keyword : keywords) {
for(const auto& word: utils::split(text, ' ')) {
if (translation::ci_search(keyword, word)) {
return true;
}
if (translation::ci_search(keyword, text)) {
return true;
}
}