From 16b20b4679a5f509ae494326ac4227515f4f37ec Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 14 Jun 2024 11:39:30 +0100 Subject: [PATCH] chore: remove unneeded lazy from regexp --- scripts/update-changelog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update-changelog.ts b/scripts/update-changelog.ts index b24f6d1a1..df9224bcf 100644 --- a/scripts/update-changelog.ts +++ b/scripts/update-changelog.ts @@ -42,7 +42,7 @@ async function main() { currentPR?.body.replace(/## 👉 Changelog[\s\S]*$/, '') || `> ${newVersion} is the next ${bumpType} release.\n>\n> **Timetable**: to be announced.`, '## 👉 Changelog', changelog - .replace(/^## v.*?\n/, '') + .replace(/^## v.*\n/, '') .replace(`...${releaseBranch}`, `...v${newVersion}`) .replace(/### ❤️ Contributors[\s\S]*$/, ''), '### ❤️ Contributors',