mirror of
https://github.com/cesanta/slre.git
synced 2024-11-24 03:15:30 +00:00
Fix #14 really
This commit is contained in:
parent
15b7ff90f8
commit
0419690215
2
slre.c
2
slre.c
@ -235,7 +235,7 @@ static int bar(const char *re, int re_len, const char *s, int s_len,
|
||||
* Even if we found one or more pattern, this branch will be executed,
|
||||
* changing the next captures.
|
||||
*/
|
||||
if (n1 < 0 && n1 < 0 && re[i + step] == '*' &&
|
||||
if (n1 < 0 && n2 < 0 && re[i + step] == '*' &&
|
||||
(n2 = bar(re + ni, re_len - ni, s + j, s_len - j, info, bi)) > 0) {
|
||||
nj = j + n2;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user