release: v0.2.2 develop 到 master #29
@@ -98,6 +98,8 @@ scan_file() { # $1=檔案路徑;命中就把報告印到 stdout 並回傳 1,
|
||||
*/simplified.txt|simplified.txt) return 0 ;;
|
||||
*/ste100-guard.sh|ste100-guard.sh) return 0 ;;
|
||||
*/lang-guard.sh|lang-guard.sh) return 0 ;;
|
||||
*/references/ste100.md|ste100.md) return 0 ;;
|
||||
*/ste100-lint.sh|ste100-lint.sh) return 0 ;;
|
||||
esac
|
||||
# 二進位檔跳過。只認 NUL 位元組——拿「非可列印字元」當判準會把所有含中文的檔案誤判成二進位。
|
||||
raw=$(head -c 1024 "$f" 2>/dev/null | wc -c)
|
||||
|
||||
+998
-88
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user