Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #88 from atom/wl-fix-specs
Browse files Browse the repository at this point in the history
Fix specs
  • Loading branch information
50Wliu committed Jan 5, 2017
2 parents 9311f72 + f0d5278 commit 2665111
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/github-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ export default class GitHubFile {
repoPath = repoPath.replace(/^\/+/, '')
return `http://${host}/${repoPath}`
})
} else if (url.match(/ssh:\/\/git@([^\/]+)\//)) {
} else if (url.match(/ssh:\/\/git@([^/]+)\//)) {
url = `http://${url.substring(10)}`
} else if (url.match(/^git:\/\/[^\/]+\//)) {
} else if (url.match(/^git:\/\/[^/]+\//)) {
url = `http${url.substring(3)}`
}

Expand Down

0 comments on commit 2665111

Please sign in to comment.