Bugfix for $(echo '1,2,3,' | bp -p '+int % `,')

This commit is contained in:
Bruce Hill 2021-01-12 20:01:46 -08:00
parent 8144ae5dc9
commit 88219f4996

1
vm.c
View File

@ -220,6 +220,7 @@ static match_t *_match(def_t *defs, file_t *f, const char *str, vm_op_t *op, uns
}
match_t *p = _match(defs, f, str, op->args.repetitions.repeat_pat, flags, rec);
if (p == NULL) {
str = start;
destroy_match(&sep);
break;
}