Skip to content

Commit

Permalink
Correct regexp for spaces-not-tabs detection
Browse files Browse the repository at this point in the history
  • Loading branch information
NashvillePublicLibrary committed Aug 26, 2024
1 parent 404d06b commit 751a875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pull_request_qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
echo "Found modified file: $file";
if [[ $file == *.php || $file == *.js || $file == *.java ]]; then
#echo "Checking $file for whitespace issues"
DIFF=$(git diff official/$DEFAULT_BRANCH HEAD -- $file | grep "^+\s* +")
DIFF=$(git diff official/$DEFAULT_BRANCH HEAD -- $file | grep "^\+\s* {2,}")
#echo "DIFF: $DIFF"
if [[ $DIFF =~ " " ]]; then
echo "Detected spaces instead of tabs in $file"
Expand Down

0 comments on commit 751a875

Please sign in to comment.