From de6474983156b108874432238174f7c3b60b2945 Mon Sep 17 00:00:00 2001 From: Jonas Maier Date: Fri, 5 Jun 2026 22:12:07 +0200 Subject: submatches --- src/parse/regex/enfa.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/parse/regex/enfa.rs') 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 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)? + } }) } } -- cgit v1.2.3