From 777e9aaab139fb62ea1cec2abe846c8545d558b5 Mon Sep 17 00:00:00 2001 From: Lukas Taegert-Atkinson Date: Wed, 31 Aug 2022 07:34:21 +0200 Subject: [PATCH] Improve issue comment RegExp --- scripts/release.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/release.js b/scripts/release.js index 1b3e17449b4..4c222cc6ca0 100755 --- a/scripts/release.js +++ b/scripts/release.js @@ -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(//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]);