- valid does not take the includePrerelease option
This commit is contained in:
+1
-2
@@ -294,8 +294,7 @@ function semVerSorting(tags: TagInfo[]): TagInfo[] {
|
||||
// filter out tags which do not follow semver
|
||||
const validatedTags = tags.filter(tag => {
|
||||
const isValid =
|
||||
semver.validRange(tag.name, {
|
||||
includePrerelease: true,
|
||||
semver.valid(tag.name, {
|
||||
loose: true
|
||||
}) !== null
|
||||
if (!isValid) {
|
||||
|
||||
Reference in New Issue
Block a user