Returns a `Validation` that checks all calls to the CEL `matches` function. It validates that if the pattern is a literal string, it is a valid regular expression.
| 43 | // It validates that if the pattern is a literal string, it is a valid regular |
| 44 | // expression. |
| 45 | inline Validation MatchesValidator() { |
| 46 | return RegexPatternValidator( |
| 47 | "cel.validator.matches", |
| 48 | {{std::string(StandardFunctions::kRegexMatch), 1}}); |
| 49 | } |
| 50 | |
| 51 | } // namespace cel |
| 52 |