Return True if this is a Markdown table separator row (---|---|...).
(line: str)
| 310 | |
| 311 | |
| 312 | def 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 | |
| 317 | def deduplicate_table_columns(content: str) -> tuple[str, int]: |
no outgoing calls
no test coverage detected