scripts/check-pr.sh: remove trailing whitespace (#20181)

This commit is contained in:
Managor
2025-12-22 11:14:05 +02:00
committed by GitHub
parent a177bc105f
commit 9205e5267c
+7 -7
View File
@@ -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'
)