mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-24 12:19:49 +00:00
heheh. Forgot the fix. Here it is:
* Grep -i previously failed on UPPER CASE patterns due to a silly regexp implementation bug that is now fixed. -Erik
This commit is contained in:
parent
fb62e3225f
commit
f4a99cc02c
7
regexp.c
7
regexp.c
@ -385,11 +385,14 @@ static int match1(regexp* re, char ch, int token, int ignoreCase)
|
||||
if (re->program[1 + 32 * (token - M_CLASS(0)) + (ch >> 3)] & (1 << (ch & 7)))
|
||||
return 0;
|
||||
}
|
||||
else if (ch == token
|
||||
|| (ignoreCase==TRUE && isupper(ch) && tolower(ch) == token))
|
||||
//fprintf(stderr, "match1: ch='%c' token='%c': ", ch, token);
|
||||
if (ch == token
|
||||
|| (ignoreCase==TRUE && tolower(ch) == tolower(token)))
|
||||
{
|
||||
//fprintf(stderr, "match\n");
|
||||
return 0;
|
||||
}
|
||||
//fprintf(stderr, "no match\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user