Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EndBug/version-check
/ isURL
Function
isURL
src/main.ts:142–149 ·
view source on GitHub ↗
(str: string)
Source
from the content-addressed store, hash-verified
140
}
141
142
function
isURL(str: string) {
143
try {
144
new
URL(str)
145
return
true
146
} catch {
147
return
false
148
}
149
}
150
151
function
isRawGithubUrl(str: string) {
152
const
url =
new
URL(str)
Callers
2
main
Function · 0.70
readJson
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected