MCPcopy
hub / github.com/garrytan/gstack / inRanges

Function inRanges

lib/redact-engine.ts:211–214  ·  view source on GitHub ↗
(offset: number, ranges: Array<[number, number]>)

Source from the content-addressed store, hash-verified

209}
210
211function inRanges(offset: number, ranges: Array<[number, number]>): boolean {
212 for (const [s, e] of ranges) if (offset >= s && offset < e) return true;
213 return false;
214}
215
216/**
217 * Doc-example heuristic: a credential span inside a tool fence still BLOCKS if

Callers 1

scanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected