From ded36d3c705db1e977be4793fbd5be9828728884 Mon Sep 17 00:00:00 2001 From: waleed Date: Thu, 29 Jan 2026 11:12:29 -0800 Subject: [PATCH] updated regex in script for release to be more lenient --- scripts/create-single-release.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/create-single-release.ts b/scripts/create-single-release.ts index bb6f79df1..943386a91 100755 --- a/scripts/create-single-release.ts +++ b/scripts/create-single-release.ts @@ -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