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

Function findTableStart

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

Source from the content-addressed store, hash-verified

283
284/** Index where the first <table starts, or -1 */
285export function findTableStart(html: string): number {
286 return html.search(/<table\b/i);
287}
288
289/** Character index in `track` immediately after the first balanced </table>, or -1. */
290export function firstCompleteTableEnd(

Callers 11

seedTableCountsFunction · 0.90
streamhtml.tsxFile · 0.90
StreamHtmlFunction · 0.90
resolveStreamCaretRangeFunction · 0.85
renderPostTableTrackFunction · 0.85
patchPostTableTailFunction · 0.85
patchFirstTableStreamFunction · 0.85
patchStreamingHtmlFunction · 0.85
assembleStreamHtmlFunction · 0.85
closeOpenTagsForStreamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected