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

Function isPasteMarker

packages/pi-tui/src/components/editor.ts:29–31  ·  view source on GitHub ↗

Check if a segment is a paste marker (i.e. was merged by segmentWithMarkers).

(segment: string)

Source from the content-addressed store, hash-verified

27
28/** Check if a segment is a paste marker (i.e. was merged by segmentWithMarkers). */
29function isPasteMarker(segment: string): boolean {
30 return segment.length >= 10 && PASTE_MARKER_SINGLE.test(segment);
31}
32
33/**
34 * A segmenter that wraps Intl.Segmenter and merges graphemes that fall

Callers 1

wordWrapLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected