修复GitHub用户名通配符

This commit is contained in:
user123
2026-01-10 20:54:45 +08:00
parent 80b0173d7c
commit fdc156adad

View File

@@ -200,6 +200,13 @@ func (ac *AccessController) checkList(matches, list []string) bool {
if strings.HasPrefix(fullRepo, item+"/") {
return true
}
if strings.HasPrefix(item, "*/") {
p := item[2:]
if p == repoName || (strings.HasSuffix(p, "*") && strings.HasPrefix(repoName, p[:len(p)-1])) {
return true
}
}
}
return false
}