diff options
Diffstat (limited to 'lib/bugs.js')
-rw-r--r-- | lib/bugs.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bugs.js b/lib/bugs.js index aed731d64..39e746592 100644 --- a/lib/bugs.js +++ b/lib/bugs.js @@ -34,8 +34,9 @@ function bugs (args, cb) { if (Array.isArray(repo)) repo = repo.shift() if (repo.url) repo = repo.url log.verbose(repo, "repository") - if (repo) { - return open(repo.replace(/^git(@|:\/\/)/, 'http://') + if (repo && repo.match(/^(https?:\/\/|git(:\/\/|@))github.com/)) { + return open(repo.replace(/^git(@|:\/\/)/, "http://") + .replace(/^https?:\/\/github.com:/, "github.com/") .replace(/\.git$/, '')+"/issues", cb) } } |