(str: string)
| 954 | } |
| 955 | |
| 956 | function resolveWindowsEnvironmentVariables(str: string): string { |
| 957 | return str.replace(/%([^%]+)%/g, (withPercents, withoutPercents) => { |
| 958 | const found: string | undefined = process.env[withoutPercents]; |
| 959 | return found || withPercents; |
| 960 | }); |
| 961 | } |
| 962 | |
| 963 | function legacyExtractArgs(argsString: string): string[] { |
| 964 | const result: string[] = []; |