diff --git a/lib/prepare_release.js b/lib/prepare_release.js
index 33372c2..6bf1aa6 100644
--- a/lib/prepare_release.js
+++ b/lib/prepare_release.js
@@ -333,17 +333,15 @@ class ReleasePreparation {
const major = versionComponents.major;
const hrefLink = `doc/changelogs/CHANGELOG_V${major}.md`;
- const escapedHrefLink = hrefLink.replace(/_/g, '\\_');
const newRefLink = `${newVersion}`;
const lastRefLink = `${lastRef}`;
for (let idx = 0; idx < arr.length; idx++) {
if (isLTSTransition) {
- if (arr[idx].includes(escapedHrefLink)) {
- arr[idx] = arr[idx].replace('**Current**', '**Long Term Support**');
- } else if (arr[idx].includes(hrefLink)) {
+ if (arr[idx].includes(hrefLink)) {
const eolDate = getEOLDate(date);
const eol = eolDate.toISOString().split('-').slice(0, 2).join('-');
+ arr[idx] = arr[idx].replace('**Current**', '**Long Term Support**');
arr[idx] = arr[idx].replace('"Current"', `"LTS Until ${eol}"`);
arr[idx] = arr[idx].replace('(Current)', '(LTS)');
} else if (arr[idx].includes('**Long Term Support**')) {