MCPcopy
hub / github.com/darkreader/darkreader / getParenthesesRange

Function getParenthesesRange

src/utils/text.ts:92–94  ·  view source on GitHub ↗
(input: string, searchStartIndex = 0)

Source from the content-addressed store, hash-verified

90}
91
92export function getParenthesesRange(input: string, searchStartIndex = 0): TextRange | null {
93 return getOpenCloseRange(input, searchStartIndex, '(', ')', []);
94}
95
96export function getOpenCloseRange(
97 input: string,

Callers 4

lowerCalcExpressionFunction · 0.90
parseGradientFunction · 0.90
getVariableRangeFunction · 0.90
text.tests.tsFile · 0.90

Calls 1

getOpenCloseRangeFunction · 0.85

Tested by

no test coverage detected