sindresorhus/refined-github

Exclude 0.0.0 tags from `latest-tag-button` #3464

fregante posted onGitHub


Something like

const excludedVersion = /^[vr]?0\.\0\.\0/;
- if (!tags.every(tag => validVersion.test(tag))) {
+ if (!tags.every(tag => validVersion.test(tag) && !excludedVersion.test(tag))) {
posted by fregante over 4 years ago

@fregante the issue is

["v0.0.0-experimental-d7382b6c4", "v0.0.0-d7382b6c4", "v16.13.1", "v0.0.0-experimental-aae83a4b9", "v0.0.0-experimental-8b155d261", "v16.13.0", "v16.12.0", "v16.11.0", *"status"*, "v16.10.2", "v16.10.1", "v16.10.0", "v16.9.0", "v16.9.0-rc.0", "v16.9.0-alpha.0", "1.2.5", "v16.8.6", "v16.8.5", "v16.8.4", "v16.8.3"]

That status is not a valid version

posted by yakov116 over 4 years ago

Ah you’re right

posted by fregante over 4 years ago

Fund this Issue

$0.00
Funded

Pull requests