MCPcopy Create free account
hub / github.com/Snapchat/Valdi / platformPathToPreferredCase

Function platformPathToPreferredCase

valdi/vscode_debugger/src/common/urlUtils.ts:389–392  ·  view source on GitHub ↗
(p: string | undefined)

Source from the content-addressed store, hash-verified

387export function platformPathToPreferredCase(p: string): string;
388export function platformPathToPreferredCase(p: string | undefined): string | undefined;
389export function platformPathToPreferredCase(p: string | undefined): string | undefined {
390 if (p && process.platform === 'win32' && p[1] === ':') return p[0].toUpperCase() + p.substring(1);
391 return p;
392}
393
394export type TargetFilter = (info: Cdp.Target.TargetInfo) => boolean;
395

Callers 2

platformPathToUrlPathFunction · 0.85

Calls 1

substringMethod · 0.80

Tested by

no test coverage detected