MCPcopy Create free account
hub / github.com/Alphanimble/htmlstream / extractAllCompleteRows

Function extractAllCompleteRows

src/patch-streaming-html.ts:269–277  ·  view source on GitHub ↗
(html: string)

Source from the content-addressed store, hash-verified

267}
268
269function 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) */
280export function extractCompleteRows(html: string): string[] {

Callers 1

extractCompleteRowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected