Skip to content

Commit

Permalink
Fix test builds 2: electric boogaloo
Browse files Browse the repository at this point in the history
  • Loading branch information
KTibow committed Oct 12, 2023
1 parent ba3deda commit 4b158de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build-scripts/lightningcss.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ function wrapCSS(text, type) {
return text;
}
function unwrapCSS(text, type) {
if (type === "inline") return text.match(/^#a ?\{([\s\S]*)\}$/)[1];
if (type === "media") return text.match(/^@media ?([\s\S]*?) ?{[\s\S]*}$/)[1];
if (type === "inline") return text.match(/^#a ?\{([\s\S]*)\}\n?$/)[1];
if (type === "media")
return text.match(/^@media ?([\s\S]*?) ?{[\s\S]*}\n?$/)[1];
return text;
}

Expand Down

0 comments on commit 4b158de

Please sign in to comment.