MCPcopy Create free account
hub / github.com/dethcrypto/dethcode / hasIndex

Function hasIndex

packages/ethereum-viewer/src/fs/textSearchProvider.ts:152–156  ·  view source on GitHub ↗
(
  hit: RegExpMatchArray
)

Source from the content-addressed store, hash-verified

150}
151
152function hasIndex(
153 hit: RegExpMatchArray
154): hit is RegExpMatchArray & { index: number } {
155 return hit.index !== undefined;
156}
157
158function getIndicesOf(pattern: string, text: string) {
159 let startIndex = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected