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

Function toTerminalHyperlink

apps/kimi-code/src/utils/git/git-status.ts:352–355  ·  view source on GitHub ↗
(text: string, url: string)

Source from the content-addressed store, hash-verified

350}
351
352function toTerminalHyperlink(text: string, url: string): string {
353 if (!isSafeHttpUrl(url)) return text;
354 return `\u001B]8;;${url}\u0007${text}\u001B]8;;\u0007`;
355}

Callers 1

formatPullRequestBadgeFunction · 0.70

Calls 1

isSafeHttpUrlFunction · 0.70

Tested by

no test coverage detected