MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isLocalHost

Function isLocalHost

src/utils/git.ts:847–853  ·  view source on GitHub ↗
(host: string)

Source from the content-addressed store, hash-verified

845}
846
847function isLocalHost(host: string): boolean {
848 const hostWithoutPort = host.split(':')[0] ?? ''
849 return (
850 hostWithoutPort === 'localhost' ||
851 /^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(hostWithoutPort)
852 )
853}
854
855/**
856 * Checks if the current working directory appears to be a bare git repository

Callers 1

normalizeGitRemoteUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected