Skip to content

Commit

Permalink
fix github push error handler regex (#151072)
Browse files Browse the repository at this point in the history
Co-Authored-by: joaomoreno
Closes: #148568
Closes: #143083
Closes: #148326
  • Loading branch information
isidorn committed Jun 2, 2022
1 parent 96cbb49 commit 96c9311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/github/src/pushErrorHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 96c9311

Please sign in to comment.