Skip to content

Commit

Permalink
Use name first and fallback to tag_name (tag_name is safer to use but…
Browse files Browse the repository at this point in the history
… can't be revised after making a release)
  • Loading branch information
friday authored Aug 21, 2021
1 parent bd74f67 commit d3f2451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/releases.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jQuery(function($) {
for (var i = 0; i < data.length; i++) {
var item = data[i];
var assets = getAssets(item);
var isStable = /^\d+\.\d+\.\d+$/.test(item.tag_name) && !item.prerelease;
var isStable = /^\d+\.\d+\.\d+$/.test(item.name || item.tag_name) && !item.prerelease;
if (assets && !item.draft && stable === isStable) {
return {
name: item.name,
Expand Down

0 comments on commit d3f2451

Please sign in to comment.