diff options
-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; } |