The same drive letter, forced to one case. No-op on a path without a drive.
(p: string, upper: boolean)
| 51 | |
| 52 | /** The same drive letter, forced to one case. No-op on a path without a drive. */ |
| 53 | function withDriveCase(p: string, upper: boolean): string { |
| 54 | return p.replace(/^[a-z]:/i, (drive) => (upper ? drive.toUpperCase() : drive.toLowerCase())); |
| 55 | } |
| 56 | |
| 57 | describe('daemon rendezvous key', () => { |
| 58 | it('collapses redundant path segments to one socket name', () => { |
no outgoing calls
no test coverage detected