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

Function sanitizeSegment

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

Source from the content-addressed store, hash-verified

103}
104
105function sanitizeSegment(value: string): string {
106 const sanitized = value.replaceAll(/[^a-zA-Z0-9._-]/g, '_');
107 return sanitized.length > 0 ? sanitized : 'unknown';
108}
109
110export function getSeaAssetSource(): NativeAssetSource | null {
111 const sea = loadSeaModule();

Callers 1

getNativeAssetCacheRootFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected