mirror of
https://github.com/logos-storage/codex-factory.git
synced 2026-01-02 13:03:07 +00:00
fix: regex
This commit is contained in:
parent
9c99180aac
commit
1ac6d89815
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user