Tweaked the regexp for Clojars
As per @espadrine's suggestion, slimmed down the regexp, as the previous one was sub optimal.
This commit is contained in:
parent
1dc9108d99
commit
f9fa73c3ef
|
@ -1089,7 +1089,7 @@ cache(function(data, match, sendBadge, request) {
|
|||
}));
|
||||
|
||||
// Clojars version integration
|
||||
camp.route(/^\/clojars\/v\/(.+)((\/)(.+))?\.(svg|png|gif|jpg|json)$/,
|
||||
camp.route(/^\/clojars\/v\/(.+)\.(svg|png|gif|jpg|json)$/,
|
||||
cache(function(data, match, sendBadge, request) {
|
||||
var clojar = match[1]; // eg, `prismic` or `foo/bar`.
|
||||
var format = match[2];
|
||||
|
|
Loading…
Reference in New Issue
Block a user