From 6936de3d2c7bbc5df8ae425d80a75187ea04ab06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=9A=E9=87=8C=E5=A3=AB=E6=9C=B1=E5=BE=B7?= Date: Wed, 26 Apr 2023 22:16:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dnode14=E4=B8=8D?= =?UTF-8?q?=E6=94=AF=E6=8C=81replaceAll=E5=AF=BC=E8=87=B4=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98=20(#66)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 择成 --- plugin/mkcert/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/mkcert/index.ts b/plugin/mkcert/index.ts index 16f4116..d0e4aaf 100644 --- a/plugin/mkcert/index.ts +++ b/plugin/mkcert/index.ts @@ -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) {