Updated CHANGELOG

This commit is contained in:
n1474335 2022-06-09 15:17:08 +01:00
parent 23b168515c
commit cc3033266c
2 changed files with 6 additions and 1 deletions

View file

@ -131,7 +131,7 @@ const getFeature = function() {
// PR IDs
prIDs.forEach(prID => {
changelogData = changelogData.replace(/(\n\[#[^\]]+\]: https:\/\/github.com\/gchq\/CyberChef\/pull\/[^\n]+\n)\n/, "$1" + prID + "\n\n");
changelogData = changelogData.replace(/(\n\[#[^\]]+\]: https:\/\/github.com\/gchq\/CyberChef\/pull\/[^\n]+\n)\n*$/, "$1" + prID + "\n\n");
});
fs.writeFileSync(path.join(process.cwd(), "CHANGELOG.md"), changelogData);