MCPcopy Create free account
hub / github.com/RASAAS/docmcp-knowledge / is_toc_table_line

Function is_toc_table_line

scripts/postprocess_fulltext.py:28–30  ·  view source on GitHub ↗

Return True if a Markdown table row looks like a TOC entry (dot-filled).

(line: str)

Source from the content-addressed store, hash-verified

26# ── helpers ──────────────────────────────────────────────────────────────────
27
28def is_toc_table_line(line: str) -> bool:
29 """Return True if a Markdown table row looks like a TOC entry (dot-filled)."""
30 return bool(re.search(r'\.{8,}', line))
31
32
33def split_into_table_blocks(lines: list[str]) -> list[tuple[str, list[str]]]:

Callers 1

is_toc_tableFunction · 0.85

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected