(html: string)
| 267 | } |
| 268 | |
| 269 | function extractAllCompleteRows(html: string): string[] { |
| 270 | const rows: string[] = []; |
| 271 | const re = new RegExp(TR_RE.source, "gi"); |
| 272 | let match: RegExpExecArray | null; |
| 273 | while ((match = re.exec(html)) !== null) { |
| 274 | rows.push(match[0]!); |
| 275 | } |
| 276 | return rows; |
| 277 | } |
| 278 | |
| 279 | /** Extract complete rows that contain at least one cell (skip auto-closed empty rows) */ |
| 280 | export function extractCompleteRows(html: string): string[] { |
no outgoing calls
no test coverage detected