Skip to content

Commit

Permalink
Merge pull request #10 from friday/friday/tweak-stable-logic
Browse files Browse the repository at this point in the history
Tweak logic for determining is a release is stable
  • Loading branch information
gornostal authored Aug 27, 2021
2 parents c0a6eb0 + d3f2451 commit 292087f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/releases.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ jQuery(function($) {
for (var i = 0; i < data.length; i++) {
var item = data[i];
var assets = getAssets(item);
var isStable = item.name.indexOf('beta') === -1 && item.name.indexOf(' ') === -1;
if (!item.prerelease && assets && !item.draft && ((stable && isStable) || (!stable && !isStable))) {
var isStable = /^\d+\.\d+\.\d+$/.test(item.name || item.tag_name) && !item.prerelease;
if (assets && !item.draft && stable === isStable) {
return {
name: item.name,
tag_name: item.tag_name,
Expand Down

0 comments on commit 292087f

Please sign in to comment.