mirror of
https://github.com/logos-storage/codex-factory.git
synced 2026-01-07 15:33:11 +00:00
fix: commit removing regex honors rc suffix (#98)
This commit is contained in:
parent
927405bab3
commit
e146b8406b
@ -11,7 +11,7 @@ export function stripCommit(version: string): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If the version contains commit ==> hash remove it
|
// 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> {
|
async function searchPackageJson(): Promise<string | undefined> {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user