← Commit list

3fb932d492

Viktor Szakats
Viktor Szakats
2025-12-09
SUCCESS Duration: 204s

Subject

mdlinkcheck: do not pick up single quote and backslash after URLs

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

scripts/mdlinkcheck+4 -4
@@ -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);
}