mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-27 21:39:37 +00:00
+ search filter addtionaly on language ISO code
This commit is contained in:
@ -513,7 +513,9 @@ namespace kiwix {
|
||||
ok = false;
|
||||
|
||||
if ((ok == true && !search.empty()) && !(matchRegex(itr->title, "\\Q" + search + "\\E") ||
|
||||
matchRegex(itr->description, "\\Q" + search + "\\E")))
|
||||
matchRegex(itr->description, "\\Q" + search + "\\E") ||
|
||||
matchRegex(itr->language, "\\Q" + search + "\\E")
|
||||
))
|
||||
ok = false;
|
||||
|
||||
if (ok == true) {
|
||||
|
Reference in New Issue
Block a user