MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _section_heading_pattern

Function _section_heading_pattern

skills/pdf-parser/scripts/parse_pdf.py:57–62  ·  view source on GitHub ↗
(*titles: str)

Source from the content-addressed store, hash-verified

55
56
57def _section_heading_pattern(*titles: str) -> str:
58 joined_titles = "|".join(re.escape(title) for title in titles)
59 return (
60 rf"(?:^|\n)\s*{SECTION_HEADING_PREFIX}\s*"
61 rf"(?:{joined_titles})\s*[::]?\s*(?:$|\n)"
62 )
63
64
65SECTION_PATTERNS = {

Callers 1

parse_pdf.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected