MCPcopy Create free account
hub / github.com/PuerNya/git-proxy / Match

Method Match

main.go:488–490  ·  view source on GitHub ↗
(user string, repo string)

Source from the content-addressed store, hash-verified

486}
487
488func (r *RepoInfo) Match(user string, repo string) bool {
489 return EasyWildcardMatch(strings.ToLower(user), strings.ToLower(r.User)) && EasyWildcardMatch(strings.ToLower(repo), strings.ToLower(r.Repo))
490}
491
492func EasyWildcardMatch(s string, p string) bool {
493 if p == "*" || (s == "" && p == "") {

Callers 1

finalHandlerFunction · 0.80

Calls 1

EasyWildcardMatchFunction · 0.85

Tested by

no test coverage detected