mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-08 18:19:30 +00:00
Also add endswith to lua parser (#443)
* Also add endswith to lua parser Add endswith as a symbol so it can be parsed in filter expressions. * Unit test for endswith support Add a test case for endswith support, based on the filename ending with null.
This commit is contained in:
@@ -265,7 +265,8 @@ local G = {
|
||||
symb("contains") / "contains" +
|
||||
symb("icontains") / "icontains" +
|
||||
symb("glob") / "glob" +
|
||||
symb("startswith") / "startswith";
|
||||
symb("startswith") / "startswith" +
|
||||
symb("endswith") / "endswith";
|
||||
InOp = kw("in") / "in";
|
||||
PmatchOp = kw("pmatch") / "pmatch";
|
||||
UnaryBoolOp = kw("not") / "not";
|
||||
|
Reference in New Issue
Block a user