MCPcopy Create free account
hub / github.com/cel-expr/cel-go / ValidateRegexLiterals

Function ValidateRegexLiterals

cel/validator.go:210–212  ·  view source on GitHub ↗

ValidateRegexLiterals ensures that regex patterns are validated after type-check.

()

Source from the content-addressed store, hash-verified

208
209// ValidateRegexLiterals ensures that regex patterns are validated after type-check.
210func ValidateRegexLiterals() ASTValidator {
211 return newFormatValidator(overloads.Matches, 0, compileRegex)
212}
213
214// ValidateHomogeneousAggregateLiterals checks that all list and map literals entries have the same types, i.e.
215// no mixed list element types or mixed map key or map value types.

Callers 3

validator.goFile · 0.85
ExtendedValidationsFunction · 0.85

Calls 1

newFormatValidatorFunction · 0.85

Tested by 1