MCPcopy Create free account
hub / github.com/arktypeio/arktype / highlight

Function highlight

ark/docs/components/shell/SearchPanel.tsx:487–488  ·  view source on GitHub ↗
(text: string, result: SearchResult)

Source from the content-addressed store, hash-verified

485 : text
486
487const highlight = (text: string, result: SearchResult) =>
488 marked(text, matcherOf(result))
489
490/** moves `start` forward to the beginning of a word, but never past `limit` */
491const wordStart = (text: string, start: number, limit: number) => {

Callers 1

resultsOfFunction · 0.70

Calls 2

markedFunction · 0.85
matcherOfFunction · 0.85

Tested by

no test coverage detected