mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-02 21:07:33 +08:00
* refactor: move terminal core into package * refactor: move terminal module files * fix: clean terminal package CI followups * test: update lint suppression allowlist * fix: ship terminal core runtime aliases
10 lines
310 B
TypeScript
10 lines
310 B
TypeScript
import { stripAnsi } from "../../packages/terminal-core/src/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, "?");
|
|
}
|