MCPcopy
hub / github.com/codeaashu/claude-code / countLines

Function countLines

src/tools/FileWriteTool/UI.tsx:35–38  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

33 * line terminator (not a new empty line), matching editor line numbering.
34 */
35export function countLines(content: string): number {
36 const parts = content.split(EOL);
37 return content.endsWith(EOL) ? parts.length - 1 : parts.length;
38}
39function FileWriteToolCreatedMessage(t0) {
40 const $ = _c(25);
41 const {

Callers 2

renderToolResultMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected