diff --git a/src/tags.js b/src/tags.js index 48d2b264..26e8d13f 100644 --- a/src/tags.js +++ b/src/tags.js @@ -11,7 +11,7 @@ const fetchTags = async (options, remote) => { .split('\n') .map(parseTag(options)) .filter(isValidTag(options)) - .sort(sortTags(options)) + .sort(sortTags) const { latestVersion, unreleased, unreleasedOnly, getCompareLink } = options if (latestVersion || unreleased || unreleasedOnly) { @@ -87,7 +87,7 @@ const isValidTag = ({ tagPattern }) => ({ tag, version }) => { return semver.valid(version) } -const sortTags = ({ tagPrefix }) => ({ version: a }, { version: b }) => { +const sortTags = ({ version: a }, { version: b }) => { if (semver.valid(a) && semver.valid(b)) { return semver.rcompare(a, b) }