MCPcopy Create free account
hub / github.com/Effect-TS/effect / searchLast

Function searchLast

packages/platform/src/internal/platformConfigProvider.ts:149–152  ·  view source on GitHub ↗
(str: string, rgx: RegExp)

Source from the content-addressed store, hash-verified

147
148/** @internal */
149const searchLast = (str: string, rgx: RegExp) => {
150 const matches = Array.from(str.matchAll(rgx))
151 return matches.length > 0 ? matches.slice(-1)[0].index : -1
152}

Callers 1

interpolateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected