Skip to content

Commit 6fee5f6

Browse files
shilangyuMultimodcrafter
authored andcommitted
Remove unneeded if condition
1 parent 0a882cd commit 6fee5f6

File tree

1 file changed

+0
-4
lines changed
  • regex-automata/tests/nfa/thompson/backtrack

1 file changed

+0
-4
lines changed

regex-automata/tests/nfa/thompson/backtrack/suite.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,6 @@ fn compiler(
119119
return Err(err.into());
120120
}
121121
};
122-
// The backtracker doesn't support lookarounds, so skip if there are any.
123-
if re.get_nfa().lookaround_count() > 0 {
124-
return Ok(CompiledRegex::skip());
125-
}
126122
let mut cache = re.create_cache();
127123
Ok(CompiledRegex::compiled(move |test| -> TestResult {
128124
run_test(&re, &mut cache, test)

0 commit comments

Comments
 (0)