From d3f24512c8bdeeeddcd6ba9700ef09fe8f1689b1 Mon Sep 17 00:00:00 2001 From: friday Date: Sat, 21 Aug 2021 10:17:03 +0200 Subject: [PATCH] Use name first and fallback to tag_name (tag_name is safer to use but can't be revised after making a release) --- assets/js/releases.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/releases.js b/assets/js/releases.js index de25475..63b8841 100644 --- a/assets/js/releases.js +++ b/assets/js/releases.js @@ -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,