Support subexpressions in construct()

This commit is contained in:
2024-10-27 13:35:24 +00:00
parent bbecd12c91
commit d5b40f9324
2 changed files with 39 additions and 1 deletions

View File

@@ -74,7 +74,8 @@ static void construct_term(const regex_term_t *term, fsa_t *out)
construct_literal(term->literal, out);
break;
case REGEX_TERM_SUBEXPR:
return;
construct(&term->subexpr, out);
break;
case REGEX_TERM_WILDCARD:
case REGEX_TERM_CLASS:
assert(false);