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

Function is_requirements_section

devtools/bolt-coverage.py:98–100  ·  view source on GitHub ↗

True if the section's header names a Requirements section.

(text: str)

Source from the content-addressed store, hash-verified

96
97
98def is_requirements_section(text: str) -> bool:
99 """True if the section's header names a Requirements section."""
100 return bool(re.match(r"#+\s+requirements\b", text.lstrip(), re.IGNORECASE))
101
102
103# Coverage record: (section_idx, start, end, src_file, src_line)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected