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

Function ValidateRegexLiterals

cel/validator.go:237–239  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

235
236// ValidateRegexLiterals ensures that regex patterns are validated after type-check.
237func ValidateRegexLiterals() ASTValidator {
238 return newFormatValidator(overloads.Matches, 0, compileRegex)
239}
240
241// ValidateHomogeneousAggregateLiterals checks that all list and map literals entries have the same types, i.e.
242// 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