MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / normalizeToSingleLine

Function normalizeToSingleLine

packages/pi-tui/src/components/select-list.ts:9–9  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

7const MIN_DESCRIPTION_WIDTH = 10;
8
9const normalizeToSingleLine = (text: string): string => text.replace(/[\r\n]+/g, " ").trim();
10const clamp = (value: number, min: number, max: number): number => Math.max(min, Math.min(value, max));
11
12export interface SelectItem {

Callers 1

renderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected