File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1010
1111
1212module . exports = ( desc ) => {
13- if ( desc && desc !== '""' && desc !== "''" ) {
13+ if ( desc && desc !== '""' && desc !== "''" ) {
1414 // Match both "Bumps" and "Updates" patterns with version numbers
1515 // The regex captures version numbers that follow "from" and "to" keywords
1616 const regex = / ( B u m p s | U p d a t e s ) .* ?f r o m ( [ \d \. ] + [ A - Z a - z α ß ] * ) t o ( [ \d \. ] + [ A - Z a - z α ß ] * ) / ;
1717 const matches = regex . exec ( desc ) ;
1818 if ( matches && matches . length == 4 ) {
1919 var [ _ , action , from , to ] = matches ;
2020 // Remove trailing dot on the "to" version if present
21- if ( to && to [ to . length - 1 ] === "." ) {
21+ if ( to && to . length > 0 && to [ to . length - 1 ] === "." ) {
2222 to = to . slice ( 0 , - 1 ) ;
2323 }
2424 // Return [to, from] format to be compatible with compareSemver
You can’t perform that action at this time.
0 commit comments