MCPcopy
hub / github.com/BishopFox/jsluice / MatchKey

Method MatchKey

user-patterns.go:73–78  ·  view source on GitHub ↗

MatchKey returns true if a pattern's key regex matches the supplied value, or if there is no key regex

(in string)

Source from the content-addressed store, hash-verified

71// MatchKey returns true if a pattern's key regex matches
72// the supplied value, or if there is no key regex
73func (u *UserPattern) MatchKey(in string) bool {
74 if u.reKey == nil {
75 return true
76 }
77 return u.reKey.MatchString(in)
78}
79
80// SecretMatcher returns a SecretMatcher based on the UserPattern,
81// for use with (*Analyzer).AddSecretMatcher()

Callers 1

pairMatcherMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected