feat: add support for .git url

This commit is contained in:
tdurieux
2021-09-07 07:13:08 +02:00
parent 794bbb9ce2
commit 46c27036b8

View File

@@ -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],