Fix typo causing infinite recursion in expand_regex
This commit is contained in:
parent
261a7fd073
commit
99ecf29e4b
1 changed files with 1 additions and 1 deletions
|
|
@ -217,7 +217,7 @@ fn expand_regex(ast: &Ast, nfa: &mut Nfa, mut next_state_id: u32, is_sep: bool)
|
|||
}
|
||||
RepetitionKind::Range(RepetitionRange::AtLeast(min)) => {
|
||||
if expand_zero_or_more(&repetition.ast, nfa, next_state_id, is_sep)? {
|
||||
expand_count(ast, min, nfa, next_state_id, is_sep)
|
||||
expand_count(&repetition.ast, min, nfa, next_state_id, is_sep)
|
||||
} else {
|
||||
Ok(false)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue