MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / NewRegex

Function NewRegex

pkg/filter/ql/functions/regex.go:32–34  ·  view source on GitHub ↗

NewRegex creates a new regex function.

()

Source from the content-addressed store, hash-verified

30
31// NewRegex creates a new regex function.
32func NewRegex() *Regex {
33 return &Regex{rxs: make(map[string]*regexp.Regexp)}
34}
35
36func (f *Regex) Call(args []interface{}) (interface{}, bool) {
37 if len(args) < 2 {

Callers 2

function.goFile · 0.92
TestRegexFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestRegexFunction · 0.68