Skip to content

Commit

Permalink
Added support for specifying version strings as defaults (#6302)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymond-u committed Nov 12, 2023
1 parent ec86acb commit e4d1353
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ export function setupVersionSelector(

/* Check if version is considered a default */
main: for (const ignore of ignored)
for (const alias of current.aliases)
if (new RegExp(ignore, "i").test(alias)) {
for (const version of current.aliases.concat(current.version))
if (new RegExp(ignore, "i").test(version)) {
outdated = false
break main
}
Expand Down

0 comments on commit e4d1353

Please sign in to comment.