MCPcopy Create free account
hub / github.com/pingdotgg/t3code / pathComparisonKey

Function pathComparisonKey

apps/desktop/src/shell/DesktopShellEnvironment.ts:95–98  ·  view source on GitHub ↗
(entry: string, platform: NodeJS.Platform)

Source from the content-addressed store, hash-verified

93 trimNonEmpty(env.PATH ?? env.Path ?? env.path);
94
95const pathComparisonKey = (entry: string, platform: NodeJS.Platform) => {
96 const normalized = entry.trim().replace(/^"+|"+$/g, "");
97 return platform === "win32" ? normalized.toLowerCase() : normalized;
98};
99
100const mergePaths = (
101 platform: NodeJS.Platform,

Callers 1

mergePathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected