From 751a875f8d62814181edbfd872c56ca94a5391b4 Mon Sep 17 00:00:00 2001 From: James Staub Date: Mon, 26 Aug 2024 12:56:45 -0500 Subject: [PATCH] Correct regexp for spaces-not-tabs detection --- .github/workflows/pull_request_qa.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request_qa.yml b/.github/workflows/pull_request_qa.yml index be26034441..cefa2040a2 100644 --- a/.github/workflows/pull_request_qa.yml +++ b/.github/workflows/pull_request_qa.yml @@ -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"