mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
Only detect filenames as css if they have \/.#& before css. Fixes #2364
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user