mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-09 15:17:49 +02:00
feat: add support for .git url
This commit is contained in:
@@ -92,7 +92,7 @@ function generateRandomId(length) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function parseGithubUrl(url) {
|
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) {
|
if (matches && matches.length == 3) {
|
||||||
return {
|
return {
|
||||||
owner: matches[1],
|
owner: matches[1],
|
||||||
|
|||||||
Reference in New Issue
Block a user