Skip to content

Commit ee32211

Browse files
committed
fix: change replaceAll to replace
1 parent 8659b31 commit ee32211

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/store.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ export function genCode() {
7171
}
7272
store.code[file] = ejs
7373
.render(currentFiles[file], store.config)
74-
.replaceAll(/\s{4}\n/gi, '\n')
75-
.replaceAll(/(\n{3,})/gi, '\n\n')
74+
.replace(/\s{4}\n/gi, '\n')
75+
.replace(/(\n{3,})/gi, '\n\n')
7676
}
7777
if (isDev) {
7878
store.code[__DEV_CONFIG_FILE__] = JSON.stringify(store.config, null, 2)

0 commit comments

Comments
 (0)