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

Function CompileRegexConstants

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

CompileRegexConstants compiles regex pattern string constants at program creation time and reports any regex pattern compile errors.

(regexOptimizations ...*RegexOptimization)

Source from the content-addressed store, hash-verified

224// CompileRegexConstants compiles regex pattern string constants at program creation time and reports any regex pattern
225// compile errors.
226func CompileRegexConstants(regexOptimizations ...*RegexOptimization) PlannerOption {
227 return CustomDecoratorV2(decRegexOptimizer(regexOptimizations...))
228}
229
230// RegexProgramSizeLimit caps the maximum regex program plan size permitted during evaluation.
231func RegexProgramSizeLimit(limit int) PlannerOption {

Callers 4

newProgramFunction · 0.92
testDataFunction · 0.85
BenchmarkInterpreterFunction · 0.85

Calls 2

decRegexOptimizerFunction · 0.85
CustomDecoratorV2Function · 0.70

Tested by 3

testDataFunction · 0.68
BenchmarkInterpreterFunction · 0.68