Skip to content

Commit 4367442

Browse files
authored
startByAlias -> isAlias
1 parent d29deee commit 4367442

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/processCss.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ var parserPlugin = postcss.plugin("css-loader-parser", function(options) {
8383
exports[exportName] = replaceImportsInString(exports[exportName]);
8484
});
8585

86-
function startByAlias(url) {
86+
function isAlias(url) {
8787
// Handle alias starting by / and root disabled
8888
return url !== options.resolve(url)
8989
}
@@ -103,7 +103,7 @@ var parserPlugin = postcss.plugin("css-loader-parser", function(options) {
103103
}
104104
break;
105105
case "url":
106-
if (options.url && item.url.replace(/\s/g, '').length && !/^#/.test(item.url) && (startByAlias(item.url) || loaderUtils.isUrlRequest(item.url, options.root))) {
106+
if (options.url && item.url.replace(/\s/g, '').length && !/^#/.test(item.url) && (isAlias(item.url) || loaderUtils.isUrlRequest(item.url, options.root))) {
107107
// Don't remove quotes around url when contain space
108108
if (item.url.indexOf(" ") === -1) {
109109
item.stringType = "";

0 commit comments

Comments
 (0)