matches(string, string) -> bool not working. #247
-
Hi folks, I wanted to use the function above to math regex, but it seems not working for me. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @leewjae, The official spec behavior for the member syntax is Thanks for bringing this to our attention. -Tristan |
Beta Was this translation helpful? Give feedback.
Hi @leewjae,
The official spec behavior for the member syntax is
string.matches(regex)
. The global function is supported in the cel-go runtime, but was omitted from the standard environment declarations, so it only worked if you didn't type-check the expression. I've put together a fix here: google/cel-go#589Thanks for bringing this to our attention.
-Tristan