Skip to content

Commit

Permalink
Merge pull request #12 from cytopia/release-0.3
Browse files Browse the repository at this point in the history
Ensure CRLF check also works on mixed line-feed files
  • Loading branch information
cytopia committed Jan 17, 2020
2 parents ea15ec2 + f31cf42 commit 4113392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/file-crlf
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 4113392

Please sign in to comment.