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

Function ValidateRegexLiterals

cel/validator.go:226–228  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

224
225// ValidateRegexLiterals ensures that regex patterns are validated after type-check.
226func ValidateRegexLiterals() ASTValidator {
227 return newFormatValidator(overloads.Matches, 0, compileRegex)
228}
229
230// ValidateHomogeneousAggregateLiterals checks that all list and map literals entries have the same types, i.e.
231// 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