md-list-tree-parser
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -36,3 +36,3 @@ /* ================================================================ | ||
var lines = mdTree.split('\n') | ||
var regex = /^(\s*)-\s\[(.*)\](\((.*)\))?/ | ||
var regex = /^(\s*)-\s\[(.*)\]\s*(\((.*)\))?/ | ||
lines.forEach(function(line, i) { | ||
@@ -74,5 +74,5 @@ var matchs = line.match(regex) | ||
this.title = title | ||
this.link = link | ||
this.link = link || '' | ||
} | ||
module.exports = parse2Json; |
{ | ||
"name": "md-list-tree-parser", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "parse markdown list-style tree to json", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "node_modules/.bin/mocha" | ||
"test": "mocha" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/brucejcw/md-list-tree-parser.git" | ||
"url": "git+https://github.com/brucejcw/md-list-tree-parser.git" | ||
}, | ||
@@ -23,3 +23,16 @@ "author": "bruce.jcw@gmail.com", | ||
"should": "^11.1.1" | ||
} | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/brucejcw/md-list-tree-parser/issues" | ||
}, | ||
"homepage": "https://github.com/brucejcw/md-list-tree-parser#readme", | ||
"directories": { | ||
"test": "test" | ||
}, | ||
"keywords": [ | ||
"markdown", | ||
"list", | ||
"tree", | ||
"json" | ||
] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
7038
8
122
1
0