]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cleancmd.pl: remove markdown links before spellcheck
authorDaniel Stenberg <daniel@haxx.se>
Tue, 24 Mar 2026 14:51:15 +0000 (15:51 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 26 Mar 2026 06:57:19 +0000 (07:57 +0100)
Closes #21085

.github/scripts/cleancmd.pl

index 06b38f10221335fc16aa0a9b281874e5c5fecb23..988d4562046a26730d5572af05c4ac3183ea88f1 100755 (executable)
@@ -102,6 +102,8 @@ sub process {
         # strip out https URLs, we do not want them spellchecked
         $l =~ s!https://[a-z0-9\#_/.-]+!!gi;
 
+        # strip links, both name and target
+        $l =~ s/(\[.*?\])\(.*?\)//g;
         $out .= $l;
     }
     close(F);