From e3eb58307419a9f7314e061c393d579fd14b75ab Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Tue, 29 Sep 2026 14:03:41 +0200 Subject: Compile filters once and reject unsupported evaluation --- src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser.rs') 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(()) -- cgit v1.3.1