[PCTheme] Escape needed chars

This commit is contained in:
Ducko 2021-03-18 21:24:06 +00:00 committed by フズキ
parent b5e55d0e7d
commit b051fb525e
No known key found for this signature in database
GPG Key ID: AD7750AB4625F1DD
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ export default (manifestPath, repo) => {
pcManifest.theme = cssPath;
}
const content = readFileSync(pcManifest.theme, 'utf8');
const content = readFileSync(pcManifest.theme, 'utf8').replace(/\\/g, '\\\\').replace(/`/g, '\\`');
const jsCode = `// Generated by MS2Builder - pcTheme preprocessor / porter
let style;