Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b97fb5a

Browse files
Multimodcraftershilangyu
authored andcommitted
Fix lookaround index initialization
1 parent 06e743c commit b97fb5a

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)

AltStyle によって変換されたページ (->オリジナル) /