mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-29 16:58:11 -05:00
updated regex in script for release to be more lenient
This commit is contained in:
@@ -57,7 +57,7 @@ function findVersionCommit(version: string): VersionCommit | null {
|
||||
for (const line of lines) {
|
||||
const [hash, message, date, author] = line.split('|')
|
||||
|
||||
const versionMatch = message.match(/^(v\d+\.\d+\.?\d*):\s*(.+)$/)
|
||||
const versionMatch = message.match(/^\s*(v\d+\.\d+\.?\d*):\s*(.+)$/)
|
||||
if (versionMatch && versionMatch[1] === version) {
|
||||
return {
|
||||
hash,
|
||||
@@ -83,7 +83,7 @@ function findPreviousVersionCommit(currentVersion: string): VersionCommit | null
|
||||
for (const line of lines) {
|
||||
const [hash, message, date, author] = line.split('|')
|
||||
|
||||
const versionMatch = message.match(/^(v\d+\.\d+\.?\d*):\s*(.+)$/)
|
||||
const versionMatch = message.match(/^\s*(v\d+\.\d+\.?\d*):\s*(.+)$/)
|
||||
if (versionMatch) {
|
||||
if (versionMatch[1] === currentVersion) {
|
||||
foundCurrent = true
|
||||
|
||||
Reference in New Issue
Block a user