Skip to content

Commit 3624c79

Browse files
committed
chore: fix bug
1 parent f7decab commit 3624c79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shared/utils/git-providers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ export function normalizeGitUrl(input: string): string | null {
298298
.replace(/^git\+/, '')
299299
.replace(/\.git$/, '')
300300
.replace(/(^|\/)[^/]+?@/, '$1') // remove "user@" from "ssh://user@host.com:..."
301-
.replace(/(\.[^.]+?):/, '$1/') // change ".com:" to ".com/" from "ssh://user@host.com:..."
301+
.replace(/(\.[^./]+?):/, '$1/') // change ".com:" to ".com/" from "ssh://user@host.com:..."
302302
.replace(/^git:\/\//, 'https://')
303303
.replace(/^ssh:\/\//, 'https://')
304304
return normalized || null

0 commit comments

Comments
 (0)