MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / Match

Method Match

internal/re/regexp.go:125–136  ·  view source on GitHub ↗
(s []byte)

Source from the content-addressed store, hash-verified

123}
124
125func (this *Regexp) Match(s []byte) bool {
126 if this.keywordsMap != nil {
127 var b = this.keywordsMap.Lookup(string(s), this.isCaseInsensitive)
128 if !b {
129 return false
130 }
131 if this.isStrict {
132 return true
133 }
134 }
135 return this.rawRegexp.Match(s)
136}
137
138func (this *Regexp) FindStringSubmatch(s string) []string {
139 return this.rawRegexp.FindStringSubmatch(s)

Callers 10

configureWebMethod · 0.45
doPageLookupMethod · 0.45
logMethod · 0.45
doCacheReadMethod · 0.45
MatchBytesCacheFunction · 0.45

Calls 1

LookupMethod · 0.80