Fixes regex - codespaces remotes are missing .git
This commit is contained in:
parent
ab39731a1e
commit
99c8eb6994
|
@ -166,8 +166,8 @@ export class GithubPushErrorHandler implements PushErrorHandler {
|
|||
return false;
|
||||
}
|
||||
|
||||
const match = /^https:\/\/github\.com\/([^/]+)\/([^/]+)\.git/i.exec(remoteUrl)
|
||||
|| /^git@github\.com:([^/]+)\/([^/]+)\.git/i.exec(remoteUrl);
|
||||
const match = /^https:\/\/github\.com\/([^/]+)\/([^/]+)(?:\.git)?/i.exec(remoteUrl)
|
||||
|| /^git@github\.com:([^/]+)\/([^/]+)(?:\.git)?/i.exec(remoteUrl);
|
||||
|
||||
if (!match) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue