Allow empty left text on custom badge

This commit is contained in:
Thaddee Tyl
2015-05-12 23:39:15 +02:00
parent a525dfa28f
commit 07e7fe090a

View File

@@ -3445,7 +3445,7 @@ cache(function (data, match, sendBadge, request) {
}));
// Any badge.
camp.route(/^\/(:|badge\/)(([^-]|--)+)-(([^-]|--)+)-(([^-]|--)+)\.(svg|png|gif|jpg)$/,
camp.route(/^\/(:|badge\/)(([^-]|--)*?)-(([^-]|--)*)-(([^-]|--)+)\.(svg|png|gif|jpg)$/,
function(data, match, end, ask) {
var subject = escapeFormat(match[2]);
var status = escapeFormat(match[4]);