MCPcopy Create free account
hub / github.com/codeaashu/claude-code / extractSshHost

Function extractSshHost

src/utils/plugins/marketplaceManager.ts:781–784  ·  view source on GitHub ↗

* Extract the SSH host from a git URL for error messaging. * Matches the SSH format user@host:path (e.g., git@github.com:owner/repo.git).

(gitUrl: string)

Source from the content-addressed store, hash-verified

779 * Matches the SSH format user@host:path (e.g., git@github.com:owner/repo.git).
780 */
781function extractSshHost(gitUrl: string): string | null {
782 const match = gitUrl.match(/^[^@]+@([^:]+):/)
783 return match?.[1] ?? null
784}
785
786/**
787 * Git clone operation (exported for testing)

Callers 1

gitCloneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected