feat(healthcheck/nonasciifile): distinguish no-text and text flag
All checks were successful
build / build (push) Successful in 1m15s
build / build (pull_request) Successful in 1m11s
build / trigger-build-image (push) Has been skipped
build / trigger-build-image (pull_request) Has been skipped

This commit is contained in:
zzjc1234 2024-10-21 16:45:24 +08:00
parent 375c874734
commit 78a711ff3b

View File

@ -59,7 +59,7 @@ func getNonAscii(root string) ([]string, error) {
if err != nil {
return err
}
if _, ret := matcher.Match(strings.Split(relPath, "/"), nil); ret {
if ret, matched := matcher.Match(strings.Split(relPath, "/"), nil); matched && ret["text"].IsUnset() {
return nil
}
}