]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cleancmd.pl: strip out backticked words
authorDaniel Stenberg <daniel@haxx.se>
Fri, 3 Jan 2025 17:15:44 +0000 (18:15 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 3 Jan 2025 17:36:50 +0000 (18:36 +0100)
To make sure they are not spellchecked. Also, leaving two backticks is
not good because they cause the spellchecker to misinterpret the
markdown file so they have to be removed as well.

.github/scripts/cleancmd.pl

index e9366de740103fc1467415ea9d6a4d74d227421a..355a845e4c5e5627a3666e400fec08dabc292af2 100755 (executable)
@@ -37,6 +37,9 @@ while(<F>) {
     }
     next if($ignore);
 
+    # strip out backticked words
+    $_ =~ s/`[^`]+`//g;
+
     # strip out all long command line options
     $_ =~ s/--[a-z0-9-]+//g;