diff options
Diffstat (limited to 'src/parse/regex/dfa.rs')
| -rw-r--r-- | src/parse/regex/dfa.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/regex/dfa.rs b/src/parse/regex/dfa.rs index 7e5be7b..2fd1935 100644 --- a/src/parse/regex/dfa.rs +++ b/src/parse/regex/dfa.rs @@ -65,7 +65,7 @@ impl From<ENFA> for DFA { nfa.simplify(); for s in nfa.states.iter() { - if !s.epsilon_trans.is_empty() { + if s.trans.iter().any(|t| t.is_epsilon()) { panic!( "NFA simplification did not remove epsilon transitions - cannot proceed with powerset construction." ); |
