mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-14 16:57:57 +00:00
fix case-insensitive search
This commit is contained in:
parent
0a25bdead9
commit
2706e713a0
@ -2471,7 +2471,7 @@ lazy_entry const* TextSearch::matchRawMessage(string const &rawMessage, libtorre
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
// fast check
|
// 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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user