From 7244f276c83d88d3b5bf8520774b20c06d61da2b Mon Sep 17 00:00:00 2001 From: Philipp Spiess Date: Wed, 11 Sep 2024 17:37:36 +0200 Subject: [PATCH] Don't assert on mangled CSS names (#14397) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR fixes an issue with the regex rule I oh-so-carefully constructed that would fail the regex when the _randomness_ part contains a `t` πŸ˜Άβ€πŸŒ«οΈ. --- integrations/vite/css-modules.test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/integrations/vite/css-modules.test.ts b/integrations/vite/css-modules.test.ts index 4389b064e..8e73a9340 100644 --- a/integrations/vite/css-modules.test.ts +++ b/integrations/vite/css-modules.test.ts @@ -60,9 +60,7 @@ for (let transformer of ['postcss', 'lightningcss']) { expect(files).toHaveLength(1) let [filename] = files[0] - await fs.expectFileToContain(filename, [ - /\.[^f]*_foo[^t]*text-decoration-line: underline;/gi, - ]) + await fs.expectFileToContain(filename, [/text-decoration-line: underline;/gi]) }, ) })