[Pkg-javascript-commits] [less.js] 14/26: make relative path test for drive name case insensitive. Fixes #2292.

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:25:18 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag v2.1.0
in repository less.js.

commit 7572cf44a00489564663ed92898e8d24502f2a0d
Author: Luke Page <luke.a.page at gmail.com>
Date:   Sun Nov 16 15:37:23 2014 +0000

    make relative path test for drive name case insensitive. Fixes #2292.
---
 lib/less/contexts.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/less/contexts.js b/lib/less/contexts.js
index 39ab0a4..99f5d36 100644
--- a/lib/less/contexts.js
+++ b/lib/less/contexts.js
@@ -76,7 +76,7 @@ contexts.Eval.prototype.isMathOn = function () {
 };
 
 contexts.Eval.prototype.isPathRelative = function (path) {
-    return !/^(?:[a-z-]+:|\/)/.test(path);
+    return !/^(?:[a-z-]+:|\/i)/.test(path);
 };
 
 contexts.Eval.prototype.normalizePath = function( path ) {

-- 
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