Comparing version 0.2.0 to 0.2.2
@@ -89,3 +89,3 @@ var DEFAULTS, FS, MKDN, PATH, Q, SWIG, YAML, compileContent, compileFile, parseFullText, readFile, resolvePath, templateEngine, | ||
if (/\/$/.test(path)) { | ||
path = path + '/index'; | ||
path = path + 'index'; | ||
} | ||
@@ -142,3 +142,3 @@ abspath = resolvePath(opts.content_root, path); | ||
var abspath, path; | ||
path = aPath.replace(/^\//, '').replace(/\.[\w\-]+$/, ''); | ||
path = aPath.replace(/^[\/]+/, '').replace(/\.[\w\-]+$/, ''); | ||
abspath = PATH.resolve(aRoot, path); | ||
@@ -186,3 +186,3 @@ if (abspath.indexOf(aRoot) !== 0) { | ||
var match, msg, rv, rx; | ||
rx = /^\s*---([\s\S]+)---\s*/gi; | ||
rx = /^---\n([\s\S]+)\n---\n/; | ||
rv = { | ||
@@ -189,0 +189,0 @@ body: aText, |
{ | ||
"name": "cm-engine", | ||
"version": "0.2.0", | ||
"version": "0.2.2", | ||
"description": "Content management redefined.", | ||
@@ -5,0 +5,0 @@ "author": "Kris Walker <kris@kixx.name> (http://www.kixx.name/)", |