MCPcopy Create free account
hub / github.com/Noumena-Network/code / sanitizeValue

Function sanitizeValue

src/commands/break-cache/break-cache.ts:22–29  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

20}
21
22function sanitizeValue(value: string): string {
23 return value
24 .replace(/[\u0000-\u001f\u007f]/g, ' ')
25 .replace(/[\[\]]/g, '')
26 .replace(/\s+/g, ' ')
27 .trim()
28 .slice(0, MAX_MARKER_LEN)
29}
30
31function formatStatus(): string {
32 const current = getSystemPromptInjection()

Callers 2

buildBumpValueFunction · 0.85
callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected