mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 19:02:45 +00:00
feat: add support for .git url
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user