Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef0468a commit c87edb1Copy full SHA for c87edb1
lib/parse/git.js
@@ -28,7 +28,7 @@ function gitURL(path) {
28
// Parse a git URL to a github ID : username/reponame
29
function githubID(_url) {
30
// Remove .git if it's in _url
31
- var sliceEnd = _url.slice(-4) === '.git' ? -4 : _url.length;
+ var sliceEnd = _url.slice(-4) === '.git' ? -4 : undefined;
32
33
// Detect HTTPS repos
34
var parsed = url.parse(_url);
0 commit comments