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

Function is_separator_row

scripts/postprocess_fulltext.py:312–314  ·  view source on GitHub ↗

Return True if this is a Markdown table separator row (---|---|...).

(line: str)

Source from the content-addressed store, hash-verified

310
311
312def is_separator_row(line: str) -> bool:
313 """Return True if this is a Markdown table separator row (---|---|...)."""
314 return bool(re.match(r'^\|?[\s\-:]+(\|[\s\-:]+)+\|?$', line.strip()))
315
316
317def deduplicate_table_columns(content: str) -> tuple[str, int]:

Callers 2

merge_fragmented_tablesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected