Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Dizzy-K/AutoPT
/ strip_ansi
Function
strip_ansi
workflow/parser.py:9–11 ·
view source on GitHub ↗
(text: str)
Source
from the content-addressed store, hash-verified
7
8
9
def
strip_ansi(text: str) -> str:
10
color_codes = r
"\x1b\[([0-?]*[ -/]*[@-~])"
11
return
re.sub(color_codes,
""
, text)
12
13
14
def
message_content(message: Any) -> str:
Callers
1
parse_vulnerabilities
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected