1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-18 11:19:56 +00:00

Fix peg/replace-all and family - Fix #1027

This commit is contained in:
Calvin Rose 2022-09-12 18:58:48 -05:00
parent 324a086eb4
commit 8da7bb6b68

View File

@ -1662,7 +1662,9 @@ static PegCall peg_cfun_init(int32_t argc, Janet *argv, int get_replace) {
}
static void peg_call_reset(PegCall *c) {
c->s.depth = JANET_RECURSION_GUARD;
c->s.captures->count = 0;
c->s.tagged_captures->count = 0;
c->s.scratch->count = 0;
c->s.tags->count = 0;
}