MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / leadingSpaces

Function leadingSpaces

scripts/extract-release-notes.mjs:70–73  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

68}
69
70function leadingSpaces(s) {
71 const m = s.match(/^(\s*)/);
72 return m ? m[1].length : 0;
73}
74
75// Bullets: `-`, `*`, `digit.` only. `+` is intentionally excluded — the
76// CHANGELOG uses literal `+` inline (`config + instructions`) and we

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected