Co-authored-by: Pierre-Yves Bigourdan <10694593+PyvesB@users.noreply.github.com>
This commit is contained in:
@@ -74,12 +74,12 @@ function latestMaybeSemVer(versions, pre) {
|
||||
try {
|
||||
// coerce to string then lowercase otherwise alpha > RC
|
||||
version = versions.sort((a, b) =>
|
||||
semver.rcompare(
|
||||
semver.compareBuild(
|
||||
`${a}`.toLowerCase(),
|
||||
`${b}`.toLowerCase(),
|
||||
/* loose */ true
|
||||
)
|
||||
)[0]
|
||||
)[versions.length - 1]
|
||||
} catch (e) {
|
||||
version = latestDottedVersion(versions)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user