From f31cf425472b1e7955657b2e3ab18f09400be4b7 Mon Sep 17 00:00:00 2001 From: cytopia Date: Fri, 17 Jan 2020 12:13:05 +0100 Subject: [PATCH] Ensure CRLF check also works on mixed line-feed files --- data/file-crlf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/file-crlf b/data/file-crlf index e1e05f2..5af7743 100755 --- a/data/file-crlf +++ b/data/file-crlf @@ -38,7 +38,7 @@ DEFAULT_CUST_OPS="" # __CUSTOM_OPT_PLACEHOLDER__ # This will be replaced either with custom options # or with the default options. -MY_REG="[[:space:]]CRLF[[:space:]].*line" +MY_REG="[[:space:]]CRLF(,|[[:space:]].*line)" MY_CHECK="file \"\$1\" | grep --color=always -E \"${MY_REG}\" || true" # Can this check fix the problems?