CelParseError: Given string is not a valid CEL expression: Redundant input, expecting EOF but found: m
Got a very strange error when running this:
evaluate('form.field == "admin"', { form: { field: 'admin' } })
Output:
CelParseError: Given string is not a valid CEL expression: Redundant input, expecting EOF but found: m
However, this below works fine (note the missing 'r')
evaluate('fom.field == "admin"', { fom: { field: 'admin' } })
This makes me think it's trying to interpret for as some kind of cel syntax.
Hey @jacobshirley, your intuition was correct. for is among the ReservedIdentifiers and, as such, is wrongly found in the identifier. I have a fix, but it still breaks on an edge case. I should have a PR on Monday.
Nice, thanks for reporting the bug and providing the fix. Already released 🙌
Amazing, thanks for the quick fix!