[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

View file

@ -27,7 +27,7 @@ export default (manifestPath, repo) => {
pcManifest.theme = cssPath; 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 const jsCode = `// Generated by MS2Builder - pcTheme preprocessor / porter
let style; let style;