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

Method Match

internal/utils/agents/agent.go:27–39  ·  view source on GitHub ↗
(ptr string)

Source from the content-addressed store, hash-verified

25}
26
27func (this *Agent) Match(ptr string) bool {
28 if len(this.suffixes) > 0 {
29 for _, suffix := range this.suffixes {
30 if strings.HasSuffix(ptr, suffix) {
31 return true
32 }
33 }
34 }
35 if this.reg != nil {
36 return this.reg.MatchString(ptr)
37 }
38 return false
39}

Callers 1

ParsePtrMethod · 0.45

Calls 1

MatchStringMethod · 0.80

Tested by

no test coverage detected