fix(server.js): Gemnasium svg regex update
This commit is contained in:
parent
f46071f9ca
commit
495eee1660
|
@ -2333,7 +2333,7 @@ cache(function(data, match, sendBadge, request) {
|
|||
}
|
||||
try {
|
||||
var nameMatch = buffer.match(/(devD|d)ependencies/)[0];
|
||||
var statusMatch = buffer.match(/'14'>(.+)<\/text>\n *<\/g>/)[1];
|
||||
var statusMatch = buffer.match(/'14'>(.+)<\/text>\s*<\/g>/)[1];
|
||||
badgeData.text[0] = nameMatch;
|
||||
badgeData.text[1] = statusMatch;
|
||||
if (statusMatch === 'up-to-date') {
|
||||
|
|
Loading…
Reference in New Issue
Block a user