From 4b158de39650c06de119566b33b328803fdfb0c6 Mon Sep 17 00:00:00 2001 From: Kendell R Date: Thu, 12 Oct 2023 02:47:11 +0000 Subject: [PATCH] Fix test builds 2: electric boogaloo --- build-scripts/lightningcss.cjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build-scripts/lightningcss.cjs b/build-scripts/lightningcss.cjs index cd735c162a36..b051d751b342 100644 --- a/build-scripts/lightningcss.cjs +++ b/build-scripts/lightningcss.cjs @@ -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; }