MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / normalizeProse

Function normalizeProse

src/cli/render/assistant-message.tsx:37–39  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

35 * here).
36 */
37export function normalizeProse(s: string): string {
38 return s.replace(/[ \t]+\n/g, '\n').replace(/\n{3,}/g, '\n\n').replace(/^\n+|\n+$/g, '');
39}
40
41/** Split a message into alternating prose and fenced-code segments. */
42export function parseSegments(text: string): Segment[] {

Callers 2

parseSegmentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected