(command: string)
| 113 | } |
| 114 | |
| 115 | function splitCommandSegments(command: string) { |
| 116 | return command |
| 117 | .split(/\s*(?:&&|;)\s*/g) |
| 118 | .map((segment) => trimAtPipe(segment)) |
| 119 | .map((segment) => segment.trim()) |
| 120 | .filter(Boolean); |
| 121 | } |
| 122 | |
| 123 | function trimAtPipe(command: string) { |
| 124 | if (!command) { |
no test coverage detected