Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
16
const
isWindowsPath = (value: string) => value[1] ===
":"
|| value.startsWith(
"\\\\"
)
17
18
export
const
pathKey = (path: string) => {
19
const
value = isWindowsPath(path) ? path.replaceAll(
"\\"
,
"/"
) : path
Callers
1
pathKey
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected