From e146b8406b4b4f1fb25cd6b5c4320fb60785585b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Uhl=C3=AD=C5=99?= Date: Mon, 9 May 2022 11:46:37 +0200 Subject: [PATCH] fix: commit removing regex honors rc suffix (#98) --- src/utils/config-sources.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/config-sources.ts b/src/utils/config-sources.ts index 62ab95b..f8f4af5 100644 --- a/src/utils/config-sources.ts +++ b/src/utils/config-sources.ts @@ -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 {