From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- .../level-1/value-optimizers/url-quotes.js | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 node_modules/clean-css/lib/optimizer/level-1/value-optimizers/url-quotes.js (limited to 'node_modules/clean-css/lib/optimizer/level-1/value-optimizers/url-quotes.js') diff --git a/node_modules/clean-css/lib/optimizer/level-1/value-optimizers/url-quotes.js b/node_modules/clean-css/lib/optimizer/level-1/value-optimizers/url-quotes.js deleted file mode 100644 index 022b80b1..00000000 --- a/node_modules/clean-css/lib/optimizer/level-1/value-optimizers/url-quotes.js +++ /dev/null @@ -1,22 +0,0 @@ -var QUOTED_URL_PATTERN = /^url\(['"].+['"]\)$/; -var QUOTED_URL_WITH_WHITESPACE_PATTERN = /^url\(['"].*[*\s()'"].*['"]\)$/; -var QUOTES_PATTERN = /["']/g; -var URL_DATA_PATTERN = /^url\(['"]data:[^;]+;charset/; - -var plugin = { - level1: { - value: function urlQuotes(_name, value, options) { - if (options.compatibility.properties.urlQuotes) { - return value; - } - - return QUOTED_URL_PATTERN.test(value) - && !QUOTED_URL_WITH_WHITESPACE_PATTERN.test(value) - && !URL_DATA_PATTERN.test(value) - ? value.replace(QUOTES_PATTERN, '') - : value; - } - } -}; - -module.exports = plugin; -- cgit v1.2.3