(start: number, end: number, replacement: string)
| 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) { |
no outgoing calls
no test coverage detected