Skip to content

Commit 14f7bd2

Browse files
committed
Merge branch 'master' of github.com:rescript-lang/rescript-lang.org into vlk-v12-react-router
2 parents 9ce7121 + 698b703 commit 14f7bd2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Packages.res

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,14 @@ let parsePkgs = data => {
510510
->Resource.filterKeywords
511511
->Resource.uniqueKeywords
512512

513+
// Convert a repository url from SSH to HTTPS.
514+
let repositoryHref = switch repositoryHref {
515+
| href if String.startsWith(href, "git+ssh") => String.replace(href, "git+ssh:", "https:")
516+
| href if String.startsWith(href, "git+") => String.replace(href, "git+", "")
517+
| href if String.startsWith(href, "git:") => String.replace(href, "git:", "https:")
518+
| href => href
519+
}
520+
513521
Some({
514522
name,
515523
version,

0 commit comments

Comments
 (0)