Skip to content

Commit 8588ff9

Browse files
author
Jason Young
committed
Fix the quote when url contains anchor
1 parent 43179a8 commit 8588ff9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/loader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ module.exports = function(content, map) {
9595
if(idx > 0) { // idx === 0 is catched by isUrlRequest
9696
// in cases like url('webfont.eot?#iefix')
9797
urlRequest = url.substr(0, idx);
98-
return "\" + escape(require(" + loaderUtils.stringifyRequest(this, urlRequest) + ")) + \"" +
99-
url.substr(idx);
98+
return "\" + escape(require(" + loaderUtils.stringifyRequest(this, urlRequest) + ") + \"" +
99+
url.substr(idx) + "\") + \"";
100100
}
101101
urlRequest = url;
102102
return "\" + escape(require(" + loaderUtils.stringifyRequest(this, urlRequest) + ")) + \"";

0 commit comments

Comments
 (0)