MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getPastedTextRefNumLines

Function getPastedTextRefNumLines

src/history.ts:47–49  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

45// "line1\nline2\nline3" to have +2 lines, not 3 lines. We preserve that
46// behavior here.
47export function getPastedTextRefNumLines(text: string): number {
48 return (text.match(/\r\n|\r|\n/g) || []).length
49}
50
51export function formatPastedTextRef(id: number, numLines: number): string {
52 if (numLines === 0) {

Callers 3

onTextPasteFunction · 0.85
recollapsePastedContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected