openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
10 lines (9 loc) • 469 B
TypeScript
export declare function stripAnsi(input: string): string;
export declare function splitGraphemes(input: string): string[];
/**
* Sanitize a value for safe interpolation into log messages.
* Strips ANSI escape sequences, C0 control characters (U+0000–U+001F),
* and DEL (U+007F) to prevent log forging / terminal escape injection (CWE-117).
*/
export declare function sanitizeForLog(v: string): string;
export declare function visibleWidth(input: string): number;