mirror of
https://github.com/tldr-pages/tldr
synced 2026-08-26 14:13:36 +01:00
scripts/check-pr.sh: remove trailing whitespace (#20181)
This commit is contained in:
+7
-7
@@ -9,7 +9,7 @@
|
||||
# 2. Detect English pages that were added in a platform specific directory although
|
||||
# they already exist under 'common'.
|
||||
# 4. Detect translated pages that do not exist as English pages yet.
|
||||
# 5. Detect outdated pages. A page is marked as outdated when the number of
|
||||
# 5. Detect outdated pages. A page is marked as outdated when the number of
|
||||
# commands differ from the number of commands in the English page or the
|
||||
# contents of the commands differ from the English page.
|
||||
# 6. Detect other miscellaneous anomalies in the pages folder.
|
||||
@@ -94,12 +94,12 @@ function strip_commands() {
|
||||
local stripped_commands=()
|
||||
|
||||
mapfile -t stripped_commands < <(
|
||||
grep "$regex" "$file" |
|
||||
sed -E 's/\{\{([^}]|(\{[^}]*\}))*\}\}/{{}}/g' |
|
||||
sed 's/<[^>]*>//g' |
|
||||
sed 's/([^)]*)//g' |
|
||||
sed 's/"[^"]*"/""/g' |
|
||||
sed "s/'[^']*'//g" |
|
||||
grep "$regex" "$file" |
|
||||
sed -E 's/\{\{([^}]|(\{[^}]*\}))*\}\}/{{}}/g' |
|
||||
sed 's/<[^>]*>//g' |
|
||||
sed 's/([^)]*)//g' |
|
||||
sed 's/"[^"]*"/""/g' |
|
||||
sed "s/'[^']*'//g" |
|
||||
sed 's/`//g'
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user