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',