(user string, repo string)
| 486 | } |
| 487 | |
| 488 | func (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 | |
| 492 | func EasyWildcardMatch(s string, p string) bool { |
| 493 | if p == "*" || (s == "" && p == "") { |
no test coverage detected