Skip to content

Commit a4b50d3

Browse files
committed
Change lookbehind optimization condition
1 parent 87730fc commit a4b50d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,7 @@ impl PikeVM {
15151515
// are started before their outer look-behind's due to the requirements of
15161516
// the self.lookbehinds vector.
15171517

1518-
if self.lookaround_count() > 0 {
1518+
if !self.lookbehinds.is_empty() {
15191519
let total_distance = forward_span.end - forward_span.start;
15201520

15211521
let start_offset = usize::min(

0 commit comments

Comments
 (0)