mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-14 16:07:09 +00:00
ci searcher: match entire string instead of chunks (closes #10027)
This commit is contained in:
parent
c3ef8084d5
commit
c7db03fa04
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user