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`
😶‍🌫️.
This commit is contained in:
Philipp Spiess 2024-09-11 17:37:36 +02:00 committed by GitHub
parent 63390c97b2
commit 7244f276c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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])
},
)
})