Skip to content

Commit 652df5c

Browse files
fixed ticket ids extract issue
1 parent 64b1a82 commit 652df5c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,9 +474,9 @@ function generateReleaseNotes(branchDiffFile, projectKeys, previousVersion, newV
474474
const regExps = [];
475475
for (const projectKey of projectKeys) {
476476
if (projectKey === '*') {
477-
regExps.push(new RegExp('([A-Z].*)-([0-9].*)'));
477+
regExps.push(new RegExp('([A-Z]*)-([0-9]*)'));
478478
} else {
479-
regExps.push(new RegExp(`${projectKey.trim()}-([0-9].*)`));
479+
regExps.push(new RegExp(`${projectKey.trim()}-([0-9]*)`));
480480
}
481481
}
482482

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ function generateReleaseNotes(branchDiffFile, projectKeys, previousVersion, newV
1414
const regExps = [];
1515
for (const projectKey of projectKeys) {
1616
if (projectKey === '*') {
17-
regExps.push(new RegExp('([A-Z].*)-([0-9].*)'));
17+
regExps.push(new RegExp('([A-Z]*)-([0-9]*)'));
1818
} else {
19-
regExps.push(new RegExp(`${projectKey.trim()}-([0-9].*)`));
19+
regExps.push(new RegExp(`${projectKey.trim()}-([0-9]*)`));
2020
}
2121
}
2222

0 commit comments

Comments
 (0)