Updated codecov regex to support /token/TOKEN/ rather than /t:TOKEN/

This commit is contained in:
Chris Reeves 2015-05-22 09:33:14 +01:00
parent 1c98ba8c16
commit 2f5a53e1de
2 changed files with 2 additions and 2 deletions

View File

@ -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`.

View File

@ -166,7 +166,7 @@ Pixel-perfect   Retina-ready   Fast   Consistent   Hackable
</tr>
<tr><th> Codecov private: </th>
<td><img src='/codecov/c/github/codecov/example-python.svg' alt=''/></td>
<td><code>https://img.shields.io/codecov/c/t:YOURTOKEN/github/codecov/example-python.svg</code></td>
<td><code>https://img.shields.io/codecov/c/token/YOURTOKEN/github/codecov/example-python.svg</code></td>
</tr>
<tr><th> Coverity Scan: </th>
<td><img src='/coverity/scan/3997.svg' alt=''/></td>