Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/1jehuang/jcode
/ strip_ansi
Function
strip_ansi
scripts/bench_memory_cli.py:177–178 ·
view source on GitHub ↗
(text: str)
Source
from the content-addressed store, hash-verified
175
176
177
def
strip_ansi(text: str) -> str:
178
return
ANSI_RE.sub(
""
, text).replace(
"\r"
,
"\n"
)
179
180
181
def
first_meaningful_line(text: str) -> str | None:
Callers
1
launch_interactive
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected