UNPKG

claude-flow

Version:

Enterprise-grade AI agent orchestration with ruv-swarm integration (Alpha Release)

10 lines (9 loc) 276 B
const normalizeValue = (value) => String(value) .replace(/\r|\n/g, (match, i, str) => { if ((match === "\r" && str[i + 1] !== "\n") || (match === "\n" && str[i - 1] !== "\r")) { return "\r\n"; } return match; }); export default normalizeValue;