Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsidor Nikolic <inikolic@microsoft.com>2022-06-02 11:02:56 +0300
committerGitHub <noreply@github.com>2022-06-02 11:02:56 +0300
commit96c9311e18e37416c13fc5d1732f830a52c74e88 (patch)
treeba9aeb248aae31d6dc4c36c0938b587bf295a1fc /extensions
parent96cbb49990f9defd9640003e798c9668a619fe49 (diff)
fix github push error handler regex (#151072)
Co-Authored-by: joaomoreno Closes: #148568 Closes: #143083 Closes: #148326
Diffstat (limited to 'extensions')
-rw-r--r--extensions/github/src/pushErrorHandler.ts2
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;
}