Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
352
function
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
formatPullRequestBadge
Function · 0.70
Calls
1
isSafeHttpUrl
Function · 0.70
Tested by
no test coverage detected