Update main.go

This commit is contained in:
NewName
2024-12-25 07:06:41 +08:00
parent 8bc9c2bd21
commit c8d0776227

View File

@@ -205,12 +205,11 @@ func checkURL(u string) []string {
return nil return nil
} }
// 匹配用户名或者仓库名
func checkList(matches, list []string) bool { func checkList(matches, list []string) bool {
for _, item := range list { for _, item := range list {
if strings.HasPrefix(matches[0], item) || strings.HasPrefix(matches[1], item) { if strings.HasPrefix(matches[0], item) {
return true return true
} }
} }
return false return false
} }