From 65245c93c25973feb11e55b0119213620af95c28 Mon Sep 17 00:00:00 2001 From: ruchira-net Date: Wed, 27 Nov 2024 09:35:57 +1300 Subject: [PATCH] #1621 fix: complication error --- src/runtime/getUrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/getUrl.js b/src/runtime/getUrl.js index a28491fe..a7c0bdc8 100644 --- a/src/runtime/getUrl.js +++ b/src/runtime/getUrl.js @@ -21,7 +21,7 @@ module.exports = (url, options) => { // Should url be wrapped? // See https://drafts.csswg.org/css-values-3/#urls if (/["'() \t\n]|(%20)/.test(url) || options.needQuotes) { - return `"${url.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\n/g, "\\n')}"`; + return `"${url.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\n/g, "\\n")}"`; } return url;