Browse Source

check-pr: add special case for '(' and ')' (#11869)

Sebastiaan Speck 1 year ago
parent
commit
ca222b2b81
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scripts/check-pr.sh

+ 1 - 0
scripts/check-pr.sh

@@ -78,6 +78,7 @@ function strip_commands() {
     grep "$regex" "$file" | 
     sed 's/{{[^}]*}}/{{}}/g' | 
     sed 's/<[^>]*>//g' | 
+    sed 's/([^)]*)//g' | 
     sed 's/"[^"]*"/""/g' | 
     sed "s/'[^']*'//g" | 
     sed 's/`//g'