ci: fix splitter, add prettier

This commit is contained in:
Cynthia Foxwell 2022-10-18 21:23:37 -06:00
parent 9d028d780b
commit a996b51a7a
2 changed files with 5 additions and 12 deletions

View file

@ -69,18 +69,9 @@ try {
}
}
const sections = cssUnixEndings.match(/@-moz-document(.*?){\n(.*?\n)}/gs);
if (sections) {
for (const index in sections) {
const section = sections[index];
const content = section.match(/@-moz-document(.*?){\n(.*?\n)}/s)[2];
if (sections.length > 1) {
files["section-" + index] = content;
} else {
files["base"] = content;
}
}
}
files["base"] = cssUnixEndings.match(
/\/\* BASE THEME START\*\/(.*?)\/\* BASE THEME END \*\//gs
)[1];
for (const key of Object.keys(parsed.metadata.vars)) {
const setting = parsed.metadata.vars[key];