fix github push error handler regex (#151072)

Co-Authored-by: joaomoreno
Closes: #148568
Closes: #143083
Closes: #148326
This commit is contained in:
Isidor Nikolic
2022-06-02 10:02:56 +02:00
committed by GitHub
parent 96cbb49990
commit 96c9311e18

View File

@@ -220,7 +220,7 @@ export class GithubPushErrorHandler implements PushErrorHandler {
return false;
}
const match = /^(?:https:\/\/github\.com\/|git@github\.com:)([^/]+)\/([^/.]+)(?:\.git)?$/i.exec(remoteUrl);
const match = /^(?:https:\/\/github\.com\/|git@github\.com:)([^\/]+)\/([^\/.]+)/i.exec(remoteUrl);
if (!match) {
return false;
}