It finds debug outputs in source code otherwise.
Output the whitelist "warnings" to stderr to better allow us to count
URLs with `./mdlinkcheck --dry-run | wc -l`.
Closes #19938
open(F, "<:crlf", "$f") ||
return;
+ # is it a markdown extension?
+ my $md = ($f =~ /\.md$/i);
+
while(<F>) {
chomp;
- if(/\]\(([^)]*)/) {
+ if($md && /\]\(([^)]*)/) {
my $link = $1;
#print "$f:$line $link\n";
storelink($f, $line, $link);
for my $u (sort keys %whitelist) {
if($whitelist{$u} == 1) {
- printf "warning: unused whitelist entry: '$u'\n";
+ printf STDERR "warning: unused whitelist entry: '$u'\n";
}
}