Ensure GitHub contributors can have a metric prefix

This commit is contained in:
Thaddee Tyl 2016-10-15 16:38:43 +02:00
parent 670867098d
commit 1996a5399f

View File

@ -2919,7 +2919,7 @@ cache(function(data, match, sendBadge, request) {
contributors = JSON.parse(buffer).length;
}
badgeData.text[1] = contributors;
badgeData.text[1] = metric(+contributors);
badgeData.colorscheme = 'blue';
} catch(e) {
badgeData.text[1] = 'inaccessible';