summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 6acee28..d9e2c6e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -75,7 +75,7 @@ fn load_config(path: &PathBuf) -> anyhow::Result<Config> {
let mut patterns_regex = Vec::with_capacity(patterns_str.len());
for pattern in patterns_str {
let regex = RegexBuilder::new(pattern).size_limit(42_000).build()?;
- if regex.captures_len() != 1 {
+ if regex.captures_len() != 2 {
return Err(anyhow!(
"Invalid pattern {}, capture groups are not one",
pattern