diff options
Diffstat (limited to 'pre-commit.sh')
-rwxr-xr-x | pre-commit.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pre-commit.sh b/pre-commit.sh index 3553140..ccf1943 100755 --- a/pre-commit.sh +++ b/pre-commit.sh @@ -6,5 +6,5 @@ # Check for trailing whitespace git grep -In ' $' && { echo 'Fix trailing whitespace!'; exit 1; } -git grep -In '\w'"$(printf '\t')"'$' && { echo 'Fix trailing whitespace!'; exit 1; } +git grep -In '\S'"$(printf '\t')" && { echo 'Fix trailing whitespace!'; exit 1; } exit 0 |