Skip to content

Commit 65245c9

Browse files
committed
webpack-contrib#1621 fix: complication error
1 parent 0d0e829 commit 65245c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/getUrl.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = (url, options) => {
2121
// Should url be wrapped?
2222
// See https://drafts.csswg.org/css-values-3/#urls
2323
if (/["'() \t\n]|(%20)/.test(url) || options.needQuotes) {
24-
return `"${url.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\n/g, "\\n')}"`;
24+
return `"${url.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\n/g, "\\n")}"`;
2525
}
2626

2727
return url;

0 commit comments

Comments
 (0)