Skip to content

Commit bcc69c1

Browse files
committed
regex: only enable implicit capture groups
1 parent 007e7d5 commit bcc69c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

engine/src/rhs_types/regex/imp_real.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use regex_automata::MatchKind;
2+
use regex_automata::nfa::thompson::WhichCaptures;
23

34
use super::Error;
45
use crate::{ParserSettings, RegexFormat};
@@ -33,6 +34,7 @@ impl Regex {
3334
.onepass(false)
3435
.dfa_size_limit(Some(settings.regex_compiled_size_limit))
3536
.hybrid_cache_capacity(settings.regex_dfa_size_limit)
37+
.which_captures(WhichCaptures::Implicit)
3638
}
3739

3840
/// Compiles a regular expression.

0 commit comments

Comments
 (0)