diff --git a/Hooks/syntax.sh b/Hooks/syntax.sh index 009aeff..1fbb104 100644 --- a/Hooks/syntax.sh +++ b/Hooks/syntax.sh @@ -102,7 +102,7 @@ if [[ "$FILE" =~ ^.+(sh)$ ]]; then fi # text files in general -if [[ "$FILE" =~ ^.+(sh|js|php|json)$ ]]; then +if [[ "$FILE" =~ ^.+(sh|js|php|json|css)$ ]]; then # Check whitespace end of line in code if [[ -n $(grep -E ' $' $FILE) ]]; then echo -e "\e[1;31m\tFound whitespace at end of line.\e[0m" >&2