mirror of
https://github.com/curl/curl.git
synced 2026-01-26 15:03:21 +00:00
mdlinkcheck: do not pick up single quote and backslash after URLs
Closes #19910
This commit is contained in:
parent
920319855d
commit
3fb932d492
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user