We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d0e829 commit 65245c9Copy full SHA for 65245c9
src/runtime/getUrl.js
@@ -21,7 +21,7 @@ module.exports = (url, options) => {
21
// Should url be wrapped?
22
// See https://drafts.csswg.org/css-values-3/#urls
23
if (/["'() \t\n]|(%20)/.test(url) || options.needQuotes) {
24
- return `"${url.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\n/g, "\\n')}"`;
+ return `"${url.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\n/g, "\\n")}"`;
25
}
26
27
return url;
0 commit comments