MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / isLocalHost

Function isLocalHost

source code/utils/git.ts:849–855  ·  view source on GitHub ↗
(host: string)

Source from the content-addressed store, hash-verified

847}
848
849function isLocalHost(host: string): boolean {
850 const hostWithoutPort = host.split(':')[0] ?? ''
851 return (
852 hostWithoutPort === 'localhost' ||
853 /^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(hostWithoutPort)
854 )
855}
856
857/**
858 * 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