From 99e5cb5f446cc9b8b209365289bcbe7faa2d9ce2 Mon Sep 17 00:00:00 2001 From: Ariful islam Date: Thu, 28 Oct 2021 12:44:56 +0100 Subject: [PATCH] fix: update for recent changelog format change (#576) The Node.js `CHANGELOG.md` has replaced use of `` tags. Refs: https://github.com/nodejs/node/pull/40475 --- lib/prepare_release.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/prepare_release.js b/lib/prepare_release.js index 4eb7c5b..33372c2 100644 --- a/lib/prepare_release.js +++ b/lib/prepare_release.js @@ -345,7 +345,7 @@ class ReleasePreparation { const eolDate = getEOLDate(date); const eol = eolDate.toISOString().split('-').slice(0, 2).join('-'); arr[idx] = arr[idx].replace('"Current"', `"LTS Until ${eol}"`); - arr[idx] = arr[idx].replace('Current', 'LTS'); + arr[idx] = arr[idx].replace('(Current)', '(LTS)'); } else if (arr[idx].includes('**Long Term Support**')) { arr[idx] = arr[idx].replace( '**Long Term Support**',