Skip to content

Commit 3d13971

Browse files
Multimodcraftershilangyu
authored andcommitted
Fix lookaround index initialization
1 parent d5e7dc3 commit 3d13971

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

regex-automata/src/nfa/thompson/compiler.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,7 @@ impl Compiler {
965965
self.builder
966966
.borrow_mut()
967967
.set_size_limit(self.config.get_nfa_size_limit())?;
968+
*self.lookaround_index.borrow_mut() = SmallIndex::ZERO;
968969

969970
// We always add an unanchored prefix unless we were specifically told
970971
// not to (for tests only), or if we know that the regex is anchored

0 commit comments

Comments
 (0)