Browse Source

Update check_trailing_spaces script with upstream

Dariusz Ruminski 7 years ago
parent
commit
5f2d99fb44
1 changed files with 1 additions and 1 deletions
  1. 1 1
      check_trailing_spaces.sh

+ 1 - 1
check_trailing_spaces.sh

@@ -15,7 +15,7 @@ if [ "$files_with_trailing_spaces" ]
 then
     printf '\033[97;41mTrailing whitespaces detected:\033[0m\n'
     e=$(printf '\033')
-    echo "${files_with_trailing_spaces}" | sed -E "s/^\\.\\/([^:]+):([0-9]+):(.*[^\t ])?([\t ]+)$/${e}[0;31m - in ${e}[0;33m\\1${e}[0;31m at line ${e}[0;33m\\2\\n   ${e}[0;31m>${e}[0m \\3${e}[41;1m\\4${e}[0m/"
+    echo "${files_with_trailing_spaces}" | sed -E "s/^\\.\\/([^:]+):([0-9]+):(.*[^\\t ])?([\\t ]+)$/${e}[0;31m - in ${e}[0;33m\\1${e}[0;31m at line ${e}[0;33m\\2\\n   ${e}[0;31m>${e}[0m \\3${e}[41;1m\\4${e}[0m/"
 
     exit 3
 fi