Only detect filenames as css if they have \/.#& before css. Fixes #2364

This commit is contained in:
Luke Page
2015-01-03 17:32:29 +00:00
parent 49955d3a35
commit aaa2462bdb

View File

@@ -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;
}
}