aboutsummaryrefslogtreecommitdiffstats
path: root/src/parse/regex/enfa.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/regex/enfa.rs')
-rw-r--r--src/parse/regex/enfa.rs4
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)?
+ }
})
}
}