fix some links

This commit is contained in:
Leo 2017-02-02 08:30:41 -05:00
parent c861ade3fa
commit 5faa996805
2 changed files with 3 additions and 3 deletions

View file

@ -88,7 +88,7 @@ function ensureLinkIsValid(file, data) {
var links = data.match(/\]\(([^\)]+?)\)/gim) || []
links.forEach(function(match) {
var link = match.slice(2, -1)
var path = link.match(/[\w-]+\.md/)
var path = (link.match(/[\w-#]+\.md/) || [])[0]
if (link.match(/http/)) {
var u = url.parse(link)
http.request({method: "HEAD", host: u.host, path: u.pathname, port: 80}).on("error", function() {