(command: string)
| 215 | } |
| 216 | |
| 217 | function supportsLineTarget(command: string): boolean { |
| 218 | const first = command.trim().split(/\s+/)[0] ?? ''; |
| 219 | return /(?:^|\/)(code|cursor|windsurf)(?:\.cmd|\.exe)?$/i.test(first); |
| 220 | } |
| 221 | |
| 222 | function quoteShellArg(value: string, platform: NodeJS.Platform): string { |
| 223 | if (platform === 'win32') return `"${value.replaceAll('"', '\\"')}"`; |
no outgoing calls
no test coverage detected