Skip to content

Commit c1ea100

Browse files
authored
fix(node): rc in getVersionFromBinary (#201)
1 parent 9d986c1 commit c1ea100

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node/install.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export function getVersionFromBinary(binPath: string): string | null {
106106
encoding: 'utf-8',
107107
});
108108

109-
const versionMatch = versionOutput.match(/(\d+\.\d+\.\d+)/);
109+
const versionMatch = versionOutput.match(/(\d+\.\d+\.\d+(-rc\d+)?)/);
110110
if (versionMatch) {
111111
return versionMatch[0];
112112
}

0 commit comments

Comments
 (0)