Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
velut committed Mar 1, 2024
1 parent 706ba68 commit 55aab3d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/normalize-raw-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ function parseGitURL({ url }: { url: string }): string | undefined {
? // A normal URL or a shortcut like `github:user/repository`
url
: // The short form github shortcut `user/repository`
url.includes('/')
? `github:${url}`
: // Not a URL
'';
url.includes('/')
? `github:${url}`
: // Not a URL
'';
try {
const { protocol, hostname, pathname } = new URL(urlWithProtocol);
const cleanPathname = pathname.replace(/\.git$/, '');
Expand Down

0 comments on commit 55aab3d

Please sign in to comment.