Fix insensitive mode.
This commit is contained in:
parent
4aad9b7385
commit
10a173f069
@ -65,7 +65,7 @@ static bool contains_match(const char* filter, const char* text, bool insensitiv
|
||||
|
||||
static char* strcasechr(const char* s,char c, bool insensitive) {
|
||||
if(insensitive) {
|
||||
const char accept[3] = {c, toupper(c), 0};
|
||||
const char accept[3] = {tolower(c), toupper(c), 0};
|
||||
return strpbrk(s, accept);
|
||||
} else {
|
||||
return strchr(s, c);
|
||||
|
Loading…
Reference in New Issue
Block a user