Allow specifying an empty label (#45)

pull/46/head
Bertrand Marron 2018-07-28 17:02:40 +02:00 zatwierdzone przez Amio /
rodzic 5162af0d63
commit cb7fc46745
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -10,7 +10,7 @@ module.exports = function serveBadge (req, res, options = {}) {
const { style, label, emoji, list, icon } = req.query
const badgenParams = {
subject: String(label || subject),
subject: typeof label !== 'undefined' ? label : subject,
status: String(list ? status.replace(/,/g, ' | ') : status),
color: color,
style: style || hostStyle,