MCPcopy Create free account
hub / github.com/axhlzy/FridaDebugger / sanitizeText

Function sanitizeText

agent/unity-fields.ts:326–333  ·  view source on GitHub ↗
(value: string | null)

Source from the content-addressed store, hash-verified

324}
325
326function sanitizeText(value: string | null): string {
327 if (value === null) {
328 return "";
329 }
330
331 const text = value.replace(/\s+/g, " ").trim();
332 return text.length > 96 ? `${text.slice(0, 93)}...` : text;
333}

Callers 2

formatFieldValueFunction · 0.85
formatObjectSummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected