@architect/parser
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -11,3 +11,3 @@ module.exports = function getSections(text) { | ||
// splits text into array of arrays | ||
var sections = text.split('@').filter(Boolean).map(c=> c.split('\n').filter(Boolean).map(s=>s.trimRight())) | ||
var sections = text.split('@').filter(Boolean).map(c=> c.split(/\r?\n/).filter(Boolean).map(s=>s.trimRight())) | ||
@@ -14,0 +14,0 @@ // validates sections |
{ | ||
"name": "@architect/parser", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "function that accepts .arc text and returns a plain JavaScript Object", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
18273