Skip to content

matches(string, string) -> bool not working. #247

Answered by TristonianJones
leewjae asked this question in Q&A
Discussion options

You must be logged in to vote

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#589

Thanks for bringing this to our attention.

-Tristan

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TristonianJones
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants