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

Function stripPort

src/utils/teleport.tsx:400–400  ·  view source on GitHub ↗
(host: string)

Source from the content-addressed store, hash-verified

398 // HTTPS remotes may include a non-standard port (e.g. ghe.corp.com:8443),
399 // which would cause a false mismatch.
400 const stripPort = (host: string): string => host.replace(/:\d+$/, '');
401 const repoMatch = currentRepo.toLowerCase() === sessionRepo.toLowerCase();
402 const hostMatch = !currentParsed || !sessionParsed || stripPort(currentParsed.host.toLowerCase()) === stripPort(sessionParsed.host.toLowerCase());
403 if (repoMatch && hostMatch) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected