MCPcopy Create free account
hub / github.com/OWASP/APTS / is_separator_row

Function is_separator_row

scripts/validate_markdown_tables.py:81–86  ·  view source on GitHub ↗
(parsed_row: ParsedRow)

Source from the content-addressed store, hash-verified

79
80
81def is_separator_row(parsed_row: ParsedRow) -> bool:
82 return (
83 parsed_row.separator_count >= 1
84 and len(parsed_row.cells) >= 2
85 and all(SEPARATOR_CELL_PATTERN.fullmatch(cell.strip()) for cell in parsed_row.cells)
86 )
87
88
89def is_body_candidate(row: str, parsed_row: ParsedRow, expected_columns: int) -> bool:

Callers 1

validate_markdown_tablesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected