MCPcopy Create free account
hub / github.com/anomalyco/opencode / isWindowsPath

Function isWindowsPath

packages/app/src/utils/path-key.ts:16–16  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

14}
15
16const isWindowsPath = (value: string) => value[1] === ":" || value.startsWith("\\\\")
17
18export const pathKey = (path: string) => {
19 const value = isWindowsPath(path) ? path.replaceAll("\\", "/") : path

Callers 1

pathKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected