diff options
| author | Jonas Maier <jonas@x77.dev> | 2026-06-05 22:12:07 +0200 |
|---|---|---|
| committer | Jonas Maier <jonas@x77.dev> | 2026-06-05 22:14:09 +0200 |
| commit | de6474983156b108874432238174f7c3b60b2945 (patch) | |
| tree | 5a587be9ac76992a3684389834d67c51ac63118e /src/parse/regex/enfa.rs | |
| parent | f06e116154bd6da5b7b3496e4ee23b5bd96745d3 (diff) | |
| download | pish-de6474983156b108874432238174f7c3b60b2945.tar.gz | |
submatches
Diffstat (limited to 'src/parse/regex/enfa.rs')
| -rw-r--r-- | src/parse/regex/enfa.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parse/regex/enfa.rs b/src/parse/regex/enfa.rs index ff742e0..dd4cf6e 100644 --- a/src/parse/regex/enfa.rs +++ b/src/parse/regex/enfa.rs @@ -724,6 +724,10 @@ impl TryFrom<Pattern> for ENFA { states.push(EState::terminal()); Self { states } } + Pattern::Submatch(pat) => { + // NFA does not track submatches, so we are skipping it. + Self::try_from(*pat)? + } }) } } |
