Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "builddocs", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Build documentation files from commented source code", | ||
@@ -5,0 +5,0 @@ "main": "src/builddocs.js", |
@@ -20,5 +20,5 @@ let fs = require("fs") | ||
let instantiateTemplate = template => { | ||
if (format == "html") template = template.replace(/(^|\n)(@\w+\n+)*@\w+(?=$|\n)/g, "<dl>\n$&\n</dl>") | ||
if (format == "html") template = template.replace(/(^|\n)(@[\w\$]+\n+)*@[\w\$]+(?=$|\n)/g, "<dl>\n$&\n</dl>") | ||
let placed = Object.create(null), problems = [] | ||
let result = template.replace(/(^|\n)@(\w+)(?=$|\n)/g, function(_, before, name) { | ||
let result = template.replace(/(^|\n)@([\w\$]+)(?=$|\n)/g, function(_, before, name) { | ||
if (placed[name]) problems.push("Item " + name + " is included in doc template twice") | ||
@@ -25,0 +25,0 @@ if (!items[name]) problems.push("Unknown item " + name + " included in doc template") |
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
43773