[Pkg-javascript-commits] [less.js] 02/58: fix rootpath without / at the end handling
Jonas Smedegaard
dr at jones.dk
Mon Oct 26 23:28:21 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag v2.3.0
in repository less.js.
commit e000c78597559c9708a3d6077c7485591eee3d63
Author: Moez Bouhlel <bmoez.j at gmail.com>
Date: Sun Oct 26 21:26:14 2014 +0100
fix rootpath without / at the end handling
---
lib/less/render.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/less/render.js b/lib/less/render.js
index 2a164f9..4dce5ef 100644
--- a/lib/less/render.js
+++ b/lib/less/render.js
@@ -45,6 +45,9 @@ module.exports = function(environment, ParseTree, ImportManager) {
};
}
+ if (rootFileInfo.rootpath && rootFileInfo.rootpath.slice(-1) !== "/")
+ rootFileInfo.rootpath += "/";
+
var imports = new ImportManager(context, rootFileInfo);
var parser = new Parser(context, imports, rootFileInfo);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git
More information about the Pkg-javascript-commits
mailing list