diff options
author | Isidor Nikolic <inikolic@microsoft.com> | 2022-06-02 11:02:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-02 11:02:56 +0300 |
commit | 96c9311e18e37416c13fc5d1732f830a52c74e88 (patch) | |
tree | ba9aeb248aae31d6dc4c36c0938b587bf295a1fc | |
parent | 96cbb49990f9defd9640003e798c9668a619fe49 (diff) |
fix github push error handler regex (#151072)
Co-Authored-by: joaomoreno
Closes: #148568
Closes: #143083
Closes: #148326
-rw-r--r-- | extensions/github/src/pushErrorHandler.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/github/src/pushErrorHandler.ts b/extensions/github/src/pushErrorHandler.ts index 5569d4fb480..2ddae480c2c 100644 --- a/extensions/github/src/pushErrorHandler.ts +++ b/extensions/github/src/pushErrorHandler.ts @@ -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; } |