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
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