MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / shortOrigin

Function shortOrigin

apps/kimi-web/src/api/config.ts:53–55  ·  view source on GitHub ↗

Strip the scheme for a compact display origin: `http://127.0.0.1:58627` → `127.0.0.1:58627`.

(origin: string)

Source from the content-addressed store, hash-verified

51
52/** Strip the scheme for a compact display origin: `http://127.0.0.1:58627` → `127.0.0.1:58627`. */
53function shortOrigin(origin: string): string {
54 return origin.replace(/^https?:\/\//, '').replace(/\/$/, '');
55}
56
57/**
58 * Address of the REAL server the client is connected to, shown in the status bar.

Callers 1

serverEndpointLabelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected