summaryrefslogtreecommitdiff
path: root/pre-commit.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pre-commit.sh')
-rwxr-xr-xpre-commit.sh2
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