mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Make bare URL RegExp case-insensitive, add more tests.
This commit is contained in:
parent
4a27c3d100
commit
6fa609fdbd
2 changed files with 5 additions and 1 deletions
|
@ -6,7 +6,7 @@ var shared = require("./shared");
|
|||
var atxClosedHeaderNoSpaceRe = /(?:^#+\S)|(?:\S#+\s*$)/;
|
||||
var atxClosedHeaderSpaceRe = /(?:^#+\s\s+?\S)|(?:\S\s\s+?#+\s*$)/;
|
||||
var atxHeaderSpaceRe = /^#+\s*\S/;
|
||||
var bareUrlRe = /(?:http|ftp)s?:\/\/[^\s]*/;
|
||||
var bareUrlRe = /(?:http|ftp)s?:\/\/[^\s]*/i;
|
||||
var dollarCommandRe = /^(\s*)(\$\s)/;
|
||||
var emptyLinkRe = /\[[^\]]*](?:\((?:#?|(?:<>))\))|(?:\[[^\]]*])/;
|
||||
var htmlRe = /<[^>]*>/;
|
||||
|
|
|
@ -6,4 +6,8 @@ which will tell you all you want to know.
|
|||
|
||||
http://www.google.com/ {MD034}
|
||||
|
||||
hTtPs://gOoGlE.cOm/ {MD034}
|
||||
|
||||
ftp://user:password@ftp-server.example.com/dir/file.txt {MD034}
|
||||
|
||||
This link should be fine: <http://www.google.com/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue