Code
Hub
Trending
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/anomalyco/opencode
/ cleanRunText
Function
cleanRunText
packages/opencode/src/cli/cmd/run/entry.body.ts:13–15 ·
view source on GitHub ↗
(text: string)
Source
from the content-addressed store, hash-verified
11
}
12
13
export
function
cleanRunText(text: string): string {
14
return
text.replace(/\r\n/g,
"\n"
).replace(/\r/g,
"\n"
)
15
}
16
17
function
textBody(content: string): RunEntryBody {
18
if
(!content) {
Callers
1
entryBody
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected