MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / MatchesValidator

Function MatchesValidator

validator/regex_validator.h:45–49  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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

Callers 1

TEST_PFunction · 0.85

Calls 1

RegexPatternValidatorFunction · 0.85

Tested by 1

TEST_PFunction · 0.68