Skip to content

Commit b8ea016

Browse files
author
Brian Vaughn
committed
Updated version extraction regex
1 parent d4392f0 commit b8ea016

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/release/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const execRead = async (command, options) => {
5151
const extractCommitFromVersionNumber = version => {
5252
// Support stable version format e.g. "0.0.0-0e526bcec-20210202"
5353
// and experimental version format e.g. "0.0.0-experimental-0e526bcec-20210202"
54-
const match = version.match(/0\.0\.0\-[0-9]{8}-([a-z]+\-){0,1}(.+)/);
54+
const match = version.match(/0\.0\.0\-([a-z]+\-){0,1}([^-]+).+/);
5555
if (match === null) {
5656
throw Error(`Could not extra commit from version "${version}"`);
5757
}

0 commit comments

Comments
 (0)