mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-11-18 10:04:17 +01:00
multiple fixes
This commit is contained in:
31 files changed
+1513
-464
No files matched your search
@@ -128,7 +128,7 @@ function generateRandomId(length) {
|
||||
function parseGithubUrl(url) {
|
||||
if (!url) throw "Invalid url";
|
||||
const matches = url
|
||||
.replace(".git", "")
|
||||
.replace(/\.git(\/|$)/, "$1")
|
||||
.match(
|
||||
/.*?github.com\/(?<owner>[\w-\._]+)\/(?<repo>[\w-\._]+)(\/pull\/(?<PR>[0-9]+))?/
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user