[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: support git protocol in readme (#643)

authored by

Alex Savelyev and committed by
GitHub
20c14644 943976f1

+2 -2
+2 -2
shared/utils/git-providers.ts
··· 265 265 266 266 const normalized = raw.replace(/^git\+/, '') 267 267 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)) { 270 270 try { 271 271 const url = new URL(normalized) 272 272 const path = url.pathname.replace(/^\/*/, '')