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

Function is_body_candidate

scripts/validate_markdown_tables.py:89–97  ·  view source on GitHub ↗
(row: str, parsed_row: ParsedRow, expected_columns: int)

Source from the content-addressed store, hash-verified

87
88
89def is_body_candidate(row: str, parsed_row: ParsedRow, expected_columns: int) -> bool:
90 stripped = row.strip()
91 if not stripped or parsed_row.separator_count == 0:
92 return False
93
94 if stripped.startswith("|") or stripped.endswith("|"):
95 return True
96
97 return parsed_row.separator_count >= expected_columns - 1
98
99
100def validate_markdown_tables() -> int:

Callers 1

validate_markdown_tablesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected