MCPcopy 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
13export function cleanRunText(text: string): string {
14 return text.replace(/\r\n/g, "\n").replace(/\r/g, "\n")
15}
16
17function textBody(content: string): RunEntryBody {
18 if (!content) {

Callers 1

entryBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected