Skip to content

Commit

Permalink
Use the GitHub resolver for https://github.com/*/* URLs. Fixes bower#250
Browse files Browse the repository at this point in the history
  • Loading branch information
wibblymat committed Mar 19, 2014
1 parent 9895f8c commit 145ed18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/core/resolverFactory.js
Expand Up @@ -55,6 +55,10 @@ function getConstructor(source, config, registryClient) {
// URL case
if (/^https?:\/\//i.exec(source)) {
return Q.fcall(function () {
if (resolvers.GitHub.getOrgRepoPair(source)) {
return [resolvers.GitHub, source];
}

return [resolvers.Url, source];
});
}
Expand Down

0 comments on commit 145ed18

Please sign in to comment.