Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anomalyco/opencode
/ hostLike
Function
hostLike
packages/core/src/repository.ts:160–162 ·
view source on GitHub ↗
(input: string)
Source
from the content-addressed store, hash-verified
158
}
159
160
function
hostLike(input: string) {
161
return
input.includes(
"."
) || input.includes(
":"
) || input ===
"localhost"
162
}
163
164
function
withSlash(input: string) {
165
return
input.endsWith(
"/"
) ? input : `${input}/`
Callers
1
parse
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected