Refined-github: Exclude 0.0.0 tags from `latest-tag-button`

Created on 15 Aug 2020  路  4Comments  路  Source: sindresorhus/refined-github

enhancement good first issue help wanted

All 4 comments

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))) {

@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

Ah you鈥檙e right

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pawelad picture pawelad  路  3Comments

mareksuscak picture mareksuscak  路  3Comments

sompylasar picture sompylasar  路  3Comments

alexanderadam picture alexanderadam  路  3Comments

sindresorhus picture sindresorhus  路  3Comments