Skip to content

Commit

Permalink
fix: 修复node14不支持replaceAll导致报错的问题 (liuweiGL#66)
Browse files Browse the repository at this point in the history
Co-authored-by: 择成 <[email protected]>
  • Loading branch information
yalishizhude and 择成 authored Apr 26, 2023
1 parent 3c8b3e6 commit 6936de3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/mkcert/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class Mkcert {

const commandResult = await exec(commandStatement)
const caDirPath = path.resolve(
commandResult.stdout.toString().replaceAll('\n', '')
commandResult.stdout.toString().replace(/\n/g, '')
)

if (caDirPath === this.savePath) {
Expand Down

0 comments on commit 6936de3

Please sign in to comment.