From cd7d0fd4882a4712016543de01c9763c0773524d Mon Sep 17 00:00:00 2001 From: claudiofullscreen Date: Wed, 20 Aug 2014 15:09:19 -0700 Subject: [PATCH] Fix Gemnasium badges Gemnasium has changed the 'y' position of the text, so shields version of the gemnasium badges are currently broken. This commit fixes them. --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index ec0406c..d096bc6 100644 --- a/server.js +++ b/server.js @@ -1075,7 +1075,7 @@ cache(function(data, match, sendBadge) { } try { var nameMatch = buffer.match(/(devD|d)ependencies/)[0]; - var statusMatch = buffer.match(/'12'>(.+)<\/text>\n<\/g>/)[1]; + var statusMatch = buffer.match(/'13'>(.+)<\/text>\n<\/g>/)[1]; badgeData.text[0] = nameMatch; badgeData.text[1] = statusMatch; if (statusMatch === 'up-to-date') {