+ search filter addtionaly on language ISO code

This commit is contained in:
Kelson42 2014-09-23 13:20:46 +02:00
parent bc161034c1
commit 49d13f09f1
1 changed files with 3 additions and 1 deletions

View File

@ -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) {