aboutsummaryrefslogtreecommitdiff
path: root/src/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.rs')
-rw-r--r--src/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.rs b/src/parser.rs
index e0b95fa..d979334 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -297,7 +297,7 @@ fn validate_regex(expr: &Expr) -> Result<(), String> {
return Err(format!("{}: regular expression is not a quoted string", pos));
}
// Validate the regex syntax
- if let Err(e) = regex::Regex::new(name) {
+ if let Err(e) = crate::compiled::compile_regex(name) {
return Err(format!("{}: invalid regular expression: {}", pos, e));
}
Ok(())