From eda3ddf502bb3875a5dd2edd9e1740f423c88a50 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?H=C3=A5vard=20Gj=C3=B8by=20Thom?=
 <34199185+havardthom@users.noreply.github.com>
Date: Sat, 23 Nov 2024 23:56:19 +0100
Subject: [PATCH] Fix newline issue in changelog pr (#474)

---
 .github/workflows/changelog-pr.yml | 2 +-
 CHANGELOG.md                       | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/changelog-pr.yml b/.github/workflows/changelog-pr.yml
index 2a402e6a..efb09a0c 100644
--- a/.github/workflows/changelog-pr.yml
+++ b/.github/workflows/changelog-pr.yml
@@ -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)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9791ee33..1770619c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,7 @@ All LXC instances created using this repository come pre-installed with Midnight
 
 > [!IMPORTANT]
 Do not break established syntax in this file, as it is automatically updated by a Github Workflow
+
 ## 2024-11-23
 
 ### Changed