(source, startIndex, openChar, closeChar)
| 93 | } |
| 94 | |
| 95 | function extractBalancedSegment(source, startIndex, openChar, closeChar) { |
| 96 | const endIndex = findMatchingDelimiter(source, startIndex, openChar, closeChar) |
| 97 | return source.slice(startIndex, endIndex + 1) |
| 98 | } |
| 99 | |
| 100 | function extractArrayBodyFromAnchor(source, anchor) { |
| 101 | const anchorIndex = source.indexOf(anchor) |
no test coverage detected