From c1ea1003b762ad80200a52d92c8562d213952958 Mon Sep 17 00:00:00 2001 From: RetricSu Date: Wed, 4 Dec 2024 14:39:32 +0800 Subject: [PATCH] fix(node): rc in getVersionFromBinary (#201) --- src/node/install.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/install.ts b/src/node/install.ts index 0b1f608..bc2400d 100644 --- a/src/node/install.ts +++ b/src/node/install.ts @@ -106,7 +106,7 @@ export function getVersionFromBinary(binPath: string): string | null { encoding: 'utf-8', }); - const versionMatch = versionOutput.match(/(\d+\.\d+\.\d+)/); + const versionMatch = versionOutput.match(/(\d+\.\d+\.\d+(-rc\d+)?)/); if (versionMatch) { return versionMatch[0]; }