mirror of https://github.com/openclaw/openclaw.git
10 lines
296 B
TypeScript
10 lines
296 B
TypeScript
import { stripAnsi } from "../../src/terminal/ansi.js";
|
|
|
|
export function normalizeTestText(input: string): string {
|
|
return stripAnsi(input)
|
|
.replaceAll("\r\n", "\n")
|
|
.replaceAll("…", "...")
|
|
.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "?")
|
|
.replace(/[\uD800-\uDFFF]/g, "?");
|
|
}
|