diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-09-29 14:03:41 +0200 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-09-29 14:03:41 +0200 |
| commit | e3eb58307419a9f7314e061c393d579fd14b75ab (patch) | |
| tree | 8e232ec9ee70bd07ebe46bbc9fd86643cb411642 /src/parser.rs | |
| parent | 93fd7757dc4900da697b9d5e884e1a343e2facda (diff) | |
| download | ele-e3eb58307419a9f7314e061c393d579fd14b75ab.tar.gz ele-e3eb58307419a9f7314e061c393d579fd14b75ab.zip | |
Compile filters once and reject unsupported evaluation
Diffstat (limited to 'src/parser.rs')
| -rw-r--r-- | src/parser.rs | 2 |
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(()) |
