From e4d1353f0c754aea009b995dad225d8645187414 Mon Sep 17 00:00:00 2001 From: raymond-u <36328498+raymond-u@users.noreply.github.com> Date: Sun, 12 Nov 2023 22:44:30 +0800 Subject: [PATCH] Added support for specifying version strings as defaults (#6302) --- .../assets/javascripts/integrations/version/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/templates/assets/javascripts/integrations/version/index.ts b/src/templates/assets/javascripts/integrations/version/index.ts index 38d78f174..154960d26 100644 --- a/src/templates/assets/javascripts/integrations/version/index.ts +++ b/src/templates/assets/javascripts/integrations/version/index.ts @@ -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 }