(cmd: string)
| 644 | } |
| 645 | |
| 646 | function normalizeExecutableLookup(cmd: string): string | null { |
| 647 | const candidate = cmd.trim(); |
| 648 | if (!candidate || candidate.includes('\0')) return null; |
| 649 | if (path.isAbsolute(candidate)) return candidate; |
| 650 | if (candidate.includes('/') || candidate.includes('\\')) { |
| 651 | return null; |
| 652 | } |
| 653 | return BARE_COMMAND_RE.test(candidate) ? candidate : null; |
| 654 | } |
| 655 | |
| 656 | function resolvePathExtensions(): string[] { |
| 657 | if (process.platform !== 'win32') return ['']; |
no outgoing calls
no test coverage detected