(commandPath: string)
| 13 | const WINDOWS_SHELL_EXTENSIONS = new Set([".cmd", ".bat"]); |
| 14 | |
| 15 | function trimCommandPath(commandPath: string): string { |
| 16 | return commandPath.trim(); |
| 17 | } |
| 18 | |
| 19 | function getKnownWindowsExtension(commandPath: string): string | null { |
| 20 | const match = trimCommandPath(commandPath).match(/\.(cmd|exe|bat|com)$/i); |
no outgoing calls
no test coverage detected