Fix: git url regex
This commit is contained in:
@@ -19,7 +19,7 @@ try {
|
|||||||
}catch {
|
}catch {
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
const matched = REMOTE.match(/github\.com[:/](.+?)\/(.+?)\.git/);
|
const matched = REMOTE.match(/([^:/]+?)\/([^/.]+)(\.git)?$/);
|
||||||
if(!matched) throw Error("Cant parse git url");
|
if(!matched) throw Error("Cant parse git url");
|
||||||
const USERNAME = matched[1];
|
const USERNAME = matched[1];
|
||||||
const REPO = matched[2];
|
const REPO = matched[2];
|
||||||
|
|||||||
Reference in New Issue
Block a user