- valid does not take the includePrerelease option
This commit is contained in:
+1
-2
@@ -1383,8 +1383,7 @@ exports.sortTags = sortTags;
|
||||
function semVerSorting(tags) {
|
||||
// filter out tags which do not follow semver
|
||||
const validatedTags = tags.filter(tag => {
|
||||
const isValid = semver.validRange(tag.name, {
|
||||
includePrerelease: true,
|
||||
const isValid = semver.valid(tag.name, {
|
||||
loose: true
|
||||
}) !== null;
|
||||
if (!isValid) {
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user