MCPcopy Create free account
hub / github.com/github/gh-aw / normalizeMutableBody

Function normalizeMutableBody

pkg/cli/outcome_eval_update.go:270–277  ·  view source on GitHub ↗
(raw any)

Source from the content-addressed store, hash-verified

268}
269
270func normalizeMutableBody(raw any) string {
271 body := strings.ReplaceAll(mutableString(raw), "\r\n", "\n")
272 lines := strings.Split(body, "\n")
273 for i := range lines {
274 lines[i] = strings.TrimRight(lines[i], " \t")
275 }
276 return strings.TrimSpace(strings.Join(lines, "\n"))
277}

Callers 1

mutableBodyHashFunction · 0.85

Calls 1

mutableStringFunction · 0.85

Tested by

no test coverage detected