()
| 20462 | } |
| 20463 | cp.stdin.end(this.options.input); |
| 20464 | } |
| 20465 | })); |
| 20466 | }); |
| 20467 | } |
| 20468 | }; |
| 20469 | function argStringToArray(argString) { |
| 20470 | const args = []; |
| 20471 | let inQuotes = false; |
| 20472 | let escaped = false; |
| 20473 | let arg = ""; |
| 20474 | function append(c) { |
| 20475 | if (escaped && c !== '"') { |
| 20476 | arg += "\\"; |
| 20477 | } |
| 20478 | arg += c; |
| 20479 | escaped = false; |
| 20480 | } |
| 20481 | for (let i = 0; i < argString.length; i++) { |
| 20482 | const c = argString.charAt(i); |
| 20483 | if (c === '"') { |
| 20484 | if (!escaped) { |
no test coverage detected