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

Function isRegexFunction

interpreter/decorators.go:203–215  ·  view source on GitHub ↗
(fn, overload string)

Source from the content-addressed store, hash-verified

201}
202
203func isRegexFunction(fn, overload string) bool {
204 switch fn {
205 case overloads.Matches, "regex.extract", "regex.extractAll", "regex.replace":
206 return true
207 }
208 switch overload {
209 case overloads.Matches, overloads.MatchesString,
210 "regex_extract_string_string", "regex_extractAll_string_string",
211 "regex_replace_string_string_string", "regex_replace_string_string_string_int":
212 return true
213 }
214 return false
215}
216
217type regexLimitCall struct {
218 InterpretableCall

Callers 1

decRegexProgramSizeLimitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected