fabricator-assemble
Advanced tools
Comparing version 1.1.9 to 1.1.10
@@ -163,4 +163,6 @@ // modules | ||
var getName = function (filePath, preserveNumbers) { | ||
var name = path.basename(filePath, path.extname(filePath)); | ||
// get name; replace spaces with dashes | ||
var name = path.basename(filePath, path.extname(filePath)).replace(/\s/g, '-'); | ||
return (preserveNumbers) ? name : name.replace(/^[0-9|\.\-]+/, ''); | ||
}; | ||
@@ -553,3 +555,3 @@ | ||
// partials are always registered with the leading numbers removed | ||
var key = name.replace(/^([a-z][a-z0-9\-]*\.)?([0-9\.-]+)(.*)$/i, '$1$3'); | ||
var key = name.replace(/(\d+[\-\.]?)+/ig, ''); | ||
@@ -556,0 +558,0 @@ // attempt to find pre-compiled partial |
{ | ||
"name": "fabricator-assemble", | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"description": "The assembly engine behind Fabricator", | ||
@@ -21,10 +21,10 @@ "main": "index.js", | ||
"chalk": "^1.0.0", | ||
"globby": "^2.0.0", | ||
"gray-matter": "^2.0.0", | ||
"globby": "^2.1.0", | ||
"gray-matter": "^2.0.1", | ||
"handlebars": "^3.0.3", | ||
"i": "^0.3.3", | ||
"js-beautify": "^1.5.5", | ||
"js-yaml": "^3.2.7", | ||
"lodash": "^3.8.0", | ||
"markdown-it": "^4.2.1", | ||
"js-beautify": "^1.5.10", | ||
"js-yaml": "^3.4.0", | ||
"lodash": "^3.10.1", | ||
"markdown-it": "^4.4.0", | ||
"mkdirp": "^0.5.0", | ||
@@ -34,3 +34,3 @@ "sort-object": "^1.0.0" | ||
"devDependencies": { | ||
"del": "^1.1.1", | ||
"del": "^2.0.1", | ||
"helper-markdown": "^0.1.1", | ||
@@ -37,0 +37,0 @@ "html-minifier": "^0.7.2", |
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
34051
611
Updatedglobby@^2.1.0
Updatedgray-matter@^2.0.1
Updatedjs-beautify@^1.5.10
Updatedjs-yaml@^3.4.0
Updatedlodash@^3.10.1
Updatedmarkdown-it@^4.4.0