Skip to content

Commit 7244f27

Browse files
Don't assert on mangled CSS names (#14397)
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` 😶‍🌫️.
1 parent 63390c9 commit 7244f27

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

integrations/vite/css-modules.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ for (let transformer of ['postcss', 'lightningcss']) {
6060
expect(files).toHaveLength(1)
6161
let [filename] = files[0]
6262

63-
await fs.expectFileToContain(filename, [
64-
/\.[^f]*_foo[^t]*text-decoration-line: underline;/gi,
65-
])
63+
await fs.expectFileToContain(filename, [/text-decoration-line: underline;/gi])
6664
},
6765
)
6866
})

0 commit comments

Comments
 (0)