File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -333,17 +333,15 @@ class ReleasePreparation {
333
333
334
334
const major = versionComponents . major ;
335
335
const hrefLink = `doc/changelogs/CHANGELOG_V${ major } .md` ;
336
- const escapedHrefLink = hrefLink . replace ( / _ / g, '\\_' ) ;
337
336
const newRefLink = `<a href="${ hrefLink } #${ newVersion } ">${ newVersion } </a>` ;
338
337
const lastRefLink = `<a href="${ hrefLink } #${ lastRef } ">${ lastRef } </a>` ;
339
338
340
339
for ( let idx = 0 ; idx < arr . length ; idx ++ ) {
341
340
if ( isLTSTransition ) {
342
- if ( arr [ idx ] . includes ( escapedHrefLink ) ) {
343
- arr [ idx ] = arr [ idx ] . replace ( '**Current**' , '**Long Term Support**' ) ;
344
- } else if ( arr [ idx ] . includes ( hrefLink ) ) {
341
+ if ( arr [ idx ] . includes ( hrefLink ) ) {
345
342
const eolDate = getEOLDate ( date ) ;
346
343
const eol = eolDate . toISOString ( ) . split ( '-' ) . slice ( 0 , 2 ) . join ( '-' ) ;
344
+ arr [ idx ] = arr [ idx ] . replace ( '**Current**' , '**Long Term Support**' ) ;
347
345
arr [ idx ] = arr [ idx ] . replace ( '"Current"' , `"LTS Until ${ eol } "` ) ;
348
346
arr [ idx ] = arr [ idx ] . replace ( '(Current)' , '(LTS)' ) ;
349
347
} else if ( arr [ idx ] . includes ( '**Long Term Support**' ) ) {
You can’t perform that action at this time.
0 commit comments