From 0cf53c091a09143432212fe58d7298b53c109291 Mon Sep 17 00:00:00 2001 From: cold_brew <295143002@qq.com> Date: Wed, 14 Jun 2023 15:16:01 +0800 Subject: [PATCH] test:1 --- scripts/build-custom-theme.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build-custom-theme.js b/scripts/build-custom-theme.js index 3a904fea8..2e6618ba9 100644 --- a/scripts/build-custom-theme.js +++ b/scripts/build-custom-theme.js @@ -91,13 +91,13 @@ while((match = ruleRegex.exec(colorsFile)) !== null) { const colorCSS = [] const nonColorCSS = []; - let inKeyFrameBlock = false; + let s = false; lines.forEach(l => { - if (inKeyFrameBlock) { + if (s) { nonColorCSS.push(l); if (/^}/.test(l)) { - inKeyFrameBlock = false; + s = false; } } else if (/^@keyframes/.test(l)) { nonColorCSS.push(l);