openclaw/src/auto-reply/reply/inbound-text.ts
2026-01-17 05:06:39 +00:00

4 lines
160 B
TypeScript

export function normalizeInboundTextNewlines(input: string): string {
return input.replaceAll("\r\n", "\n").replaceAll("\r", "\n").replaceAll("\\n", "\n");
}