There was an error while loading. Please reload this page.
replaceAll
replace
1 parent 8659b31 commit ee32211Copy full SHA for ee32211
src/store.js
@@ -71,8 +71,8 @@ export function genCode() {
71
}
72
store.code[file] = ejs
73
.render(currentFiles[file], store.config)
74
- .replaceAll(/\s{4}\n/gi, '\n')
75
- .replaceAll(/(\n{3,})/gi, '\n\n')
+ .replace(/\s{4}\n/gi, '\n')
+ .replace(/(\n{3,})/gi, '\n\n')
76
77
if (isDev) {
78
store.code[__DEV_CONFIG_FILE__] = JSON.stringify(store.config, null, 2)
0 commit comments