feat(healthcheck/nonasciifile): distinguish no-text and text flag

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
}
}