From 77fde7eb7841d7e2d9c87fdc1dba511369f5a065 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 23 Aug 2016 14:03:26 -0700 Subject: [PATCH] Allow less imports of paths like 'dir/css' --- 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 3787b052..750883d9 100644 --- a/lib/less/tree/import.js +++ b/lib/less/tree/import.js @@ -29,7 +29,7 @@ var Import = function (path, features, options, index, currentFileInfo, visibili 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; } }