Skip to content

Commit 20c1464

Browse files
authored
fix: support git protocol in readme (#643)
1 parent 943976f commit 20c1464

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared/utils/git-providers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ export function normalizeGitUrl(input: string): string | null {
265265

266266
const normalized = raw.replace(/^git\+/, '')
267267

268-
// Handle ssh:// URLs by converting to https://
269-
if (/^ssh:\/\//i.test(normalized)) {
268+
// Handle ssh:// and git:// URLs by converting to https://
269+
if (/^(ssh|git):\/\//i.test(normalized)) {
270270
try {
271271
const url = new URL(normalized)
272272
const path = url.pathname.replace(/^\/*/, '')

0 commit comments

Comments
 (0)