Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

md-list-tree-parser

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

md-list-tree-parser - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

test/regex.test.js

4

lib/parser.js

@@ -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"
]
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc