From: Viktor Szakats Date: Tue, 9 Dec 2025 22:27:34 +0000 (+0100) Subject: mdlinkcheck: do not pick up single quote and backslash after URLs X-Git-Tag: rc-8_18_0-2~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fb932d49255d92141c27d3e9a040752622620b7;p=thirdparty%2Fcurl.git mdlinkcheck: do not pick up single quote and backslash after URLs Closes #19910 --- diff --git a/scripts/mdlinkcheck b/scripts/mdlinkcheck index f83144108e..446cb9f1dd 100755 --- a/scripts/mdlinkcheck +++ b/scripts/mdlinkcheck @@ -160,10 +160,10 @@ sub findlinks { #print "$f:$line $link\n"; storelink($f, $line, $link); } - # ignore trailing: dot, quote, asterisk, hash, comma, question mark, - # colon, closing parenthesis, closing angle bracket, whitespace, pipe, - # backtick, semicolon - elsif(/(https:\/\/[a-z0-9.\/:%_+@-]+[^."*\#,?:\)> \t|`;])/i) { + # ignore trailing: dot, double quote, single quote, asterisk, hash, + # comma, question mark, colon, closing parenthesis, backslash, + # closing angle bracket, whitespace, pipe, backtick, semicolon + elsif(/(https:\/\/[a-z0-9.\/:%_+@-]+[^."'*\#,?:\)> \t|`;\\])/i) { #print "RAW "; storelink($f, $line, $1); }