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

Function countLines

src/cli/components/editor-logic.ts:70–73  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

68}
69
70export function countLines(s: string): number {
71 if (s === '') return 0;
72 return s.split('\n').length;
73}
74
75/** Short, human label for a pasted blob, e.g. "Pasted 42 lines (1.2 KB)". */
76export function pasteLabel(s: string): string {

Callers 2

pasteLabelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected