From 2f5a53e1deee752b2b48bbfc8712e3e3c8a7c460 Mon Sep 17 00:00:00 2001 From: Chris Reeves Date: Fri, 22 May 2015 09:33:14 +0100 Subject: [PATCH] Updated codecov regex to support /token/TOKEN/ rather than /t:TOKEN/ --- server.js | 2 +- try.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index ea3ac94..78315a6 100644 --- a/server.js +++ b/server.js @@ -1536,7 +1536,7 @@ cache(function(data, match, sendBadge, request) { })); // Codecov integration. -camp.route(/^\/codecov\/c\/(?:t:([A-Za-z1-9]+))?[+\/]?([^\/]+\/[^\/]+\/[^\/]+)(?:\/(.+))?\.(svg|png|gif|jpg|json)$/, +camp.route(/^\/codecov\/c\/(?:token\/(\w+))?[+\/]?([^\/]+\/[^\/]+\/[^\/]+)(?:\/(.+))?\.(svg|png|gif|jpg|json)$/, cache(function(data, match, sendBadge, request) { var token = match[1]; var userRepo = match[2]; // eg, `github/codecov/example-python`. diff --git a/try.html b/try.html index cd62df5..23980ff 100644 --- a/try.html +++ b/try.html @@ -166,7 +166,7 @@ Pixel-perfect   Retina-ready   Fast   Consistent   Hackable Codecov private: - https://img.shields.io/codecov/c/t:YOURTOKEN/github/codecov/example-python.svg + https://img.shields.io/codecov/c/token/YOURTOKEN/github/codecov/example-python.svg Coverity Scan: