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

Function sanitizeSegment

apps/kimi-code/src/native/web-assets.ts:65–68  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

63}
64
65function sanitizeSegment(value: string): string {
66 const sanitized = value.replaceAll(/[^a-zA-Z0-9._-]/g, '_');
67 return sanitized.length > 0 ? sanitized : 'unknown';
68}
69
70function readFileSha256(path: string): string | null {
71 try {

Callers 1

getWebAssetCacheRootFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected