MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / isIndexHighlighted

Function isIndexHighlighted

packages/web/src/lib/codeHighlight.ts:129–131  ·  view source on GitHub ↗
(index: number, ranges: { from: number; to: number }[])

Source from the content-addressed store, hash-verified

127}
128
129const isIndexHighlighted = (index: number, ranges: { from: number; to: number }[]) => {
130 return ranges.some((range) => index >= range.from && index < range.to);
131};

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected