diff --git a/public/script/utils.js b/public/script/utils.js index ab87298..2be501e 100644 --- a/public/script/utils.js +++ b/public/script/utils.js @@ -92,7 +92,7 @@ function generateRandomId(length) { } function parseGithubUrl(url) { - var matches = url.match(/.*?github.com\/([\w-\._]+)\/([\w-\._]+)/); + var matches = url.replace(".git", "").match(/.*?github.com\/([\w-\._]+)\/([\w-\._]+)/); if (matches && matches.length == 3) { return { owner: matches[1],