From 2706e713a03163ac0bc73a934ae18a7a1e5289ee Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Tue, 2 Sep 2014 12:50:15 +0400 Subject: [PATCH] fix case-insensitive search --- src/twister.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/twister.cpp b/src/twister.cpp index c108635a..26c7e9d3 100644 --- a/src/twister.cpp +++ b/src/twister.cpp @@ -2471,7 +2471,7 @@ lazy_entry const* TextSearch::matchRawMessage(string const &rawMessage, libtorre return 0; } // fast check - if( mode != TEXTSEARCH_ANY && rawMessage.find(keywords[0]) == string::npos ) { + if( !caseInsensitive && mode != TEXTSEARCH_ANY && rawMessage.find(keywords[0]) == string::npos ) { return 0; }