We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 596f423 commit 9119cd0Copy full SHA for 9119cd0
1 file changed
shared/utils/git-providers.ts
@@ -265,8 +265,8 @@ export function normalizeGitUrl(input: string): string | null {
265
266
const normalized = raw.replace(/^git\+/, '')
267
268
- // Handle ssh:// URLs by converting to https://
269
- if (/^ssh:\/\//i.test(normalized)) {
+ // Handle ssh:// and git:// URLs by converting to https://
+ if (/^(ssh|git):\/\//i.test(normalized)) {
270
try {
271
const url = new URL(normalized)
272
const path = url.pathname.replace(/^\/*/, '')
0 commit comments