MCPcopy Create free account
hub / github.com/ElementsProject/lightning / section_content_start

Function section_content_start

devtools/bolt-coverage.py:142–145  ·  view source on GitHub ↗

Offset past the leading '### SectionTitle ' header.

(text: str)

Source from the content-addressed store, hash-verified

140
141
142def section_content_start(text: str) -> int:
143 """Offset past the leading '### SectionTitle ' header."""
144 m = re.match(r"(#+\s+\S+\s+)", text.lstrip())
145 return m.end() if m else 0
146
147
148def adjacent_before(records: List[CovRecord], gap_start: int) -> List[CovRecord]:

Callers 1

show_gapsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected