fix: commit removing regex honors rc suffix (#98)

This commit is contained in:
Adam Uhlíř 2022-05-09 11:46:37 +02:00 committed by GitHub
parent 927405bab3
commit e146b8406b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ export function stripCommit(version: string): string {
}
// If the version contains commit ==> hash remove it
return version.replace(/(-\w+)+$/g, '')
return version.replace('-stateful', '').replace(/-[0-9a-fA-F]{8}$/, '')
}
async function searchPackageJson(): Promise<string | undefined> {