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