Skip to content

Commit

Permalink
fix: update for recent changelog format change
Browse files Browse the repository at this point in the history
The Node.js `CHANGELOG.md` has replaced use of `<sup>` tags.

Refs: nodejs/node#40475
  • Loading branch information
richardlau committed Oct 27, 2021
1 parent e66ba17 commit 2d83847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prepare_release.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('<sup>Current</sup>', '<sup>LTS</sup>');
arr[idx] = arr[idx].replace('(Current)', '(LTS)');
} else if (arr[idx].includes('**Long Term Support**')) {
arr[idx] = arr[idx].replace(
'**Long Term Support**',
Expand Down

0 comments on commit 2d83847

Please sign in to comment.