MCPcopy Create free account
hub / github.com/Noumena-Network/code / computeGutterWidth

Function computeGutterWidth

src/components/HighlightedCode/renderPlan.ts:94–97  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

92}
93
94function computeGutterWidth(code: string): number {
95 const lineCount = countCharInString(code, '\n') + 1
96 return lineCount.toString().length + 2
97}

Callers 1

Calls 2

countCharInStringFunction · 0.85
toStringMethod · 0.65

Tested by

no test coverage detected