MCPcopy Create free account
hub / github.com/codeaashu/claude-code / hasAnsi

Function hasAnsi

web/lib/ansi-to-html.ts:17–20  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

15
16/** Returns true if the string contains any ANSI escape sequences. */
17export function hasAnsi(text: string): boolean {
18 ANSI_RE.lastIndex = 0;
19 return ANSI_RE.test(text);
20}
21
22// ─── ANSI → inline HTML spans ─────────────────────────────────────────────────
23

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected