Added support for specifying version strings as defaults (#6302)

This commit is contained in:
raymond-u 2023-11-12 22:44:30 +08:00 committed by GitHub
parent ec86acbce3
commit e4d1353f0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,8 +168,8 @@ export function setupVersionSelector(
/* Check if version is considered a default */ /* Check if version is considered a default */
main: for (const ignore of ignored) main: for (const ignore of ignored)
for (const alias of current.aliases) for (const version of current.aliases.concat(current.version))
if (new RegExp(ignore, "i").test(alias)) { if (new RegExp(ignore, "i").test(version)) {
outdated = false outdated = false
break main break main
} }