Upgrade antonmedv/expr to expr-lang/expr (#6814)

* Upgrade antonmedv/expr to expr-lang/expr

The project has moved.  This also upgrades from 1.15.5 to 1.16.9.
The expr project lacks a changelog but tests pass and the changes don't
seem to change it much - but there were a lot of changes.

Signed-off-by: Kevin Lyda <kevin@lyda.ie>

* Upgrade build image

In reviewing the build results I see the old build image was deprecated so
upgrading to something newer.

Signed-off-by: Kevin Lyda <kevin@lyda.ie>

---------

Signed-off-by: Kevin Lyda <kevin@lyda.ie>
This commit is contained in:
Kevin Lyda
2024-08-11 13:00:49 +01:00
committed by GitHub
parent e5945d2767
commit c742ec03f5
7 changed files with 13 additions and 11 deletions

View File

@@ -93,13 +93,13 @@ Note that the regex pattern is enclosed in single quotes, and backslashes are es
## Expressions
To evaluate expressions, *view* uses the antonmedv/expr package ( https://github.com/antonmedv/expr ).
To evaluate expressions, *view* uses the expr-lang/expr package ( https://github.com/expr-lang/expr ).
For example, an expression could look like:
`(type() == 'A' && name() == 'example.com.') || client_ip() == '1.2.3.4'`.
All expressions should be written to evaluate to a boolean value.
See https://github.com/antonmedv/expr/blob/master/docs/Language-Definition.md as a detailed reference for valid syntax.
See https://github.com/expr-lang/expr/blob/master/docs/Language-Definition.md as a detailed reference for valid syntax.
### Available Expression Functions