1
0
mirror of https://github.com/twisterarmy/twister-core.git synced 2025-01-14 00:38:09 +00:00

fix case-insensitive search

This commit is contained in:
Denis Ryabov 2014-09-02 12:50:15 +04:00
parent 0a25bdead9
commit 2706e713a0

View File

@ -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;
}