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:
parent
63390c97b2
commit
7244f276c8
1 changed files with 1 additions and 3 deletions
|
|
@ -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])
|
||||
},
|
||||
)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue