updated regex in script for release to be more lenient

This commit is contained in:
waleed
2026-01-29 11:12:29 -08:00
parent c010fedb81
commit ded36d3c70

View File

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