mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-24 07:30:12 +01: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 */
|
/* 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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user