(stdout: string)
| 140 | }); |
| 141 | |
| 142 | function getInvocations(stdout: string): string[][] { |
| 143 | const matches = stdout.match(/[^[\]]+/g); |
| 144 | const raw = Array.isArray(matches) ? matches : []; |
| 145 | |
| 146 | return raw |
| 147 | .filter((invocation) => invocation !== "\n") |
| 148 | .map((invocation) => |
| 149 | invocation |
| 150 | .split(",") |
| 151 | .map((fragment) => fragment.trim()) |
| 152 | .map((fragment) => fragment.substring(1, fragment.length - 1)) |
| 153 | .filter(Boolean), |
| 154 | ); |
| 155 | } |