We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7decab commit 3624c79Copy full SHA for 3624c79
1 file changed
shared/utils/git-providers.ts
@@ -298,7 +298,7 @@ export function normalizeGitUrl(input: string): string | null {
298
.replace(/^git\+/, '')
299
.replace(/\.git$/, '')
300
.replace(/(^|\/)[^/]+?@/, '$1') // remove "user@" from "ssh://user@host.com:..."
301
- .replace(/(\.[^.]+?):/, '$1/') // change ".com:" to ".com/" from "ssh://user@host.com:..."
+ .replace(/(\.[^./]+?):/, '$1/') // change ".com:" to ".com/" from "ssh://user@host.com:..."
302
.replace(/^git:\/\//, 'https://')
303
.replace(/^ssh:\/\//, 'https://')
304
return normalized || null
0 commit comments