From 1ac6d89815a29f0b319a7d2c16dbc31dbb554cfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Uhl=C3=AD=C5=99?= Date: Thu, 5 May 2022 16:29:18 +0200 Subject: [PATCH] fix: regex --- 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 68a12d5..75b2473 100644 --- a/src/utils/config-sources.ts +++ b/src/utils/config-sources.ts @@ -1,7 +1,7 @@ import { readFile } from 'fs/promises' import * as path from 'path' -const VERSION_REGEX = /^\d\.\d\.\d(-\w+)+$/ +const VERSION_REGEX = /^\d\.\d\.\d(-\w+)*$/ export function stripCommit(version: string): string { if (!VERSION_REGEX.test(version)) {