mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added support for specifying version strings as defaults (#6302)
This commit is contained in:
parent
ec86acbce3
commit
e4d1353f0c
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user