(field: string)
| 84 | return m ? m[1] === "true" : undefined; |
| 85 | } |
| 86 | function extractStringArray(field: string): string[] | undefined { |
| 87 | const m = body.match(new RegExp(`\\b${field}\\s*:\\s*\\[([^\\]]*?)\\]`)); |
| 88 | if (!m) return undefined; |
| 89 | const items = m[1].match(/['"`]([^'"`]*?)['"`]/g); |
| 90 | return items ? items.map((s) => s.slice(1, -1)) : []; |
| 91 | } |
| 92 | |
| 93 | const maxDepth = extractNumber("maxDepth"); |
| 94 | if (maxDepth !== undefined) config.maxDepth = maxDepth; |
no outgoing calls
no test coverage detected