[Pkg-javascript-commits] [less.js] 270/285: Fix wrong check in abstractFileManager.getPath
Jonas Smedegaard
dr at jones.dk
Mon Oct 26 23:24:01 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag v2.0.0
in repository less.js.
commit 31846a90912ec6c20e24f3644a159d1a9a6d0c5b
Author: Evgenij Spitsyn <evgeniy at spitsyn.net>
Date: Mon Nov 3 12:20:27 2014 +0300
Fix wrong check in abstractFileManager.getPath
---
lib/less/environment/abstract-file-manager.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/less/environment/abstract-file-manager.js b/lib/less/environment/abstract-file-manager.js
index 521bd65..11d6f20 100644
--- a/lib/less/environment/abstract-file-manager.js
+++ b/lib/less/environment/abstract-file-manager.js
@@ -3,7 +3,7 @@ var abstractFileManager = function() {
abstractFileManager.prototype.getPath = function (filename) {
var j = filename.lastIndexOf('?');
- if (j < 0) {
+ if (j > 0) {
filename = filename.slice(0, j);
}
j = filename.lastIndexOf('/');
--
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