Fix newline issue in changelog pr (#474)

This commit is contained in:
Håvard Gjøby Thom
2024-11-23 23:56:19 +01:00
committed by GitHub
parent 49d65442d1
commit eda3ddf502
2 changed files with 2 additions and 1 deletions

View File

@ -112,7 +112,7 @@ jobs:
// Replace todays release notes or insert release notes above previous release notes
const regex = changelogIncludesTodaysReleaseNotes ?
new RegExp(`\n## ${today}.*(?=## ${latestDateInChangelog})`, "gs") :
new RegExp(`## ${today}.*(?=## ${latestDateInChangelog})`, "gs") :
new RegExp(`(?=## ${latestDateInChangelog})`, "gs");
const newChangelogContent = changelogContent.replace(regex, newReleaseNotes)