Skip to content

Commit ded36d3

Browse files
committed
updated regex in script for release to be more lenient
1 parent c010fed commit ded36d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/create-single-release.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function findVersionCommit(version: string): VersionCommit | null {
5757
for (const line of lines) {
5858
const [hash, message, date, author] = line.split('|')
5959

60-
const versionMatch = message.match(/^(v\d+\.\d+\.?\d*):\s*(.+)$/)
60+
const versionMatch = message.match(/^\s*(v\d+\.\d+\.?\d*):\s*(.+)$/)
6161
if (versionMatch && versionMatch[1] === version) {
6262
return {
6363
hash,
@@ -83,7 +83,7 @@ function findPreviousVersionCommit(currentVersion: string): VersionCommit | null
8383
for (const line of lines) {
8484
const [hash, message, date, author] = line.split('|')
8585

86-
const versionMatch = message.match(/^(v\d+\.\d+\.?\d*):\s*(.+)$/)
86+
const versionMatch = message.match(/^\s*(v\d+\.\d+\.?\d*):\s*(.+)$/)
8787
if (versionMatch) {
8888
if (versionMatch[1] === currentVersion) {
8989
foundCurrent = true

0 commit comments

Comments
 (0)