diff --git a/src/common/kiwix/manager.cpp b/src/common/kiwix/manager.cpp index 45e1c282d..46fb3373b 100644 --- a/src/common/kiwix/manager.cpp +++ b/src/common/kiwix/manager.cpp @@ -512,7 +512,8 @@ namespace kiwix { if (ok == true && !publisher.empty() && itr->publisher != publisher) ok = false; - if ((ok == true && !search.empty()) && !(matchRegex(itr->title, search) || matchRegex(itr->description, search))) + if ((ok == true && !search.empty()) && !(matchRegex(itr->title, "\\Q" + search + "\\E") || + matchRegex(itr->description, "\\Q" + search + "\\E"))) ok = false; if (ok == true) {