const GitUrlParse = require("git-url-parse");
const a = GitUrlParse("[email protected]:0xABCDEF/myreponame.git");
const b = GitUrlParse("[email protected]:1xABCDEF/myreponame.git");
const c = GitUrlParse("[email protected]:zxABCDEF/myreponame.git");
console.log(a.owner, a.full_name); // BUGGY => git git/myreponame
console.log(b.owner, b.full_name); // OK => 1xABCDEF 1xABCDEF/myreponame
console.log(c.owner, c.full_name); // OK => zxABCDEF zxABCDEF/myreponame
I have a git url to parse where the owner's GitHub user name is a hexadecimal number. :-)