Skip to content

Commit

Permalink
fix: change replaceAll to replace
Browse files Browse the repository at this point in the history
  • Loading branch information
ydcjeff committed Jun 5, 2021
1 parent 8659b31 commit ee32211
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ export function genCode() {
}
store.code[file] = ejs
.render(currentFiles[file], store.config)
.replaceAll(/\s{4}\n/gi, '\n')
.replaceAll(/(\n{3,})/gi, '\n\n')
.replace(/\s{4}\n/gi, '\n')
.replace(/(\n{3,})/gi, '\n\n')
}
if (isDev) {
store.code[__DEV_CONFIG_FILE__] = JSON.stringify(store.config, null, 2)
Expand Down

0 comments on commit ee32211

Please sign in to comment.