mirror of
https://gitlab.com/Cynosphere/xmc.git
synced 2024-08-14 22:57:03 +00:00
ci: fix splitter, add prettier
This commit is contained in:
parent
9d028d780b
commit
a996b51a7a
2 changed files with 5 additions and 12 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue