Pulling back bugfix
This commit is contained in:
parent
2bc0ca7390
commit
951a68f449
8
match.c
8
match.c
@ -912,13 +912,7 @@ static match_t *_get_numbered_capture(match_t *m, int *n)
|
||||
match_t *get_numbered_capture(match_t *m, int n)
|
||||
{
|
||||
if (n <= 0) return m;
|
||||
if (m->children) {
|
||||
for (int i = 0; m->children[i]; i++) {
|
||||
match_t *cap = _get_numbered_capture(m->children[i], &n);
|
||||
if (cap) return cap;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
return _get_numbered_capture(m, &n);
|
||||
}
|
||||
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user