Omit needless removal of multiple slashes

Related to #535
This commit is contained in:
Thaddee Tyl 2015-11-05 00:01:56 +01:00
parent cb89543e43
commit 3f7414f8ae

View File

@ -2642,9 +2642,7 @@ cache(function(data, match, sendBadge, request) {
var asset_name = match[4].toLowerCase(); // eg. total, atom-amd64.deb, atom.x86_64.rpm
var format = match[5];
if (tag && (tag.indexOf('/') !== -1)) {
tag = tag.split('/').join('');
}
if (tag) { tag = tag.slice(1); }
var total = true;
if (tag) {