[Pkg-javascript-commits] [less.js] 31/38: Only detect filenames as css if they have \/.#& before css. Fixes #2364

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:27:29 UTC 2015


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

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

commit aaa2462bdbae45862db6e2561b806081cab3cdd7
Author: Luke Page <luke.a.page at gmail.com>
Date:   Sat Jan 3 17:32:29 2015 +0000

    Only detect filenames as css if they have \/.#& before css. Fixes #2364
---
 lib/less/tree/import.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/less/tree/import.js b/lib/less/tree/import.js
index 69e1aad..62c3325 100644
--- a/lib/less/tree/import.js
+++ b/lib/less/tree/import.js
@@ -28,7 +28,7 @@ var Import = function (path, features, options, index, currentFileInfo) {
         this.css = !this.options.less || this.options.inline;
     } else {
         var pathValue = this.getPath();
-        if (pathValue && /css([\?;].*)?$/.test(pathValue)) {
+        if (pathValue && /[#\.\&\?\/]css([\?;].*)?$/.test(pathValue)) {
             this.css = true;
         }
     }

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