Skip to content

Commit

Permalink
Improve issue comment RegExp
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Aug 31, 2022
1 parent 382202b commit 777e9aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release.js
Expand Up @@ -158,7 +158,7 @@ async function getIncludedPRs(changelog, repo) {
prs.map(async ({ pr, text }) => {
const { data } = await repo.getPullRequest(pr);
const bodyWithoutComments = data.body.replace(/<!--[\s\S]*?-->/g, '');
const closedIssuesRegexp = /(fix(es|ed)?|(close|resolve)[sd]?) #(\d+)/g;
const closedIssuesRegexp = /([Ff]ix(es|ed)?|([Cc]lose|[Rr]esolve)[sd]?) #(\d+)/g;
const closed = [];
while ((match = closedIssuesRegexp.exec(bodyWithoutComments))) {
closed.push(match[4]);
Expand Down

0 comments on commit 777e9aa

Please sign in to comment.