This commit is contained in:
cold_brew 2023-06-14 15:16:01 +08:00 committed by GitHub
parent dc7fef6395
commit 0cf53c091a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,13 +91,13 @@ while((match = ruleRegex.exec(colorsFile)) !== null) {
const colorCSS = [] const colorCSS = []
const nonColorCSS = []; const nonColorCSS = [];
let inKeyFrameBlock = false; let s = false;
lines.forEach(l => { lines.forEach(l => {
if (inKeyFrameBlock) { if (s) {
nonColorCSS.push(l); nonColorCSS.push(l);
if (/^}/.test(l)) { if (/^}/.test(l)) {
inKeyFrameBlock = false; s = false;
} }
} else if (/^@keyframes/.test(l)) { } else if (/^@keyframes/.test(l)) {
nonColorCSS.push(l); nonColorCSS.push(l);