MCPcopy
hub / github.com/darkreader/darkreader / replaceBetweenIndices

Function replaceBetweenIndices

src/utils/color.ts:462–464  ·  view source on GitHub ↗
(start: number, end: number, replacement: string)

Source from the content-addressed store, hash-verified

460
461 // Replace the content between two indices.
462 const replaceBetweenIndices = (start: number, end: number, replacement: string) => {
463 color = color.substring(0, start) + replacement + color.substring(end);
464 };
465
466 // Run this code until it doesn't find any `calc(...)`.
467 while ((searchIndex = color.indexOf('calc(')) !== -1) {

Callers 1

lowerCalcExpressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected