Fix links to googlecode package homepages

This commit is contained in:
Steve Purcell 2015-02-23 20:25:11 +00:00
parent 2aa643204d
commit 50849b52d0

View file

@ -106,7 +106,7 @@
} else if (recipe.url) {
var urlMatch = function(re, prefix) {
var m = recipe.url.match(re);
return m !== null ? prefix + m[0] : null;
return m !== null ? (prefix || '') + m[0] : null;
};
return (urlMatch(/(bitbucket\.org\/[^\/]+\/[^\/\?]+)/, "https://") ||
urlMatch(/(gitorious\.org\/[^\/]+\/[^.]+)/, "https://") ||