fix: regex

This commit is contained in:
Adam Uhlíř 2022-05-05 16:29:18 +02:00
parent 9c99180aac
commit 1ac6d89815
No known key found for this signature in database
GPG Key ID: 1D17A9E81F76155B

View File

@ -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)) {