Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TruthHun/BookStack
/ getHost
Function
getHost
crawl.js:85–91 ·
view source on GitHub ↗
(url)
Source
from the content-addressed store, hash-verified
83
}
84
85
function
getHost(url) {
86
let
u = String(url).toLowerCase()
87
if
(u.startsWith(
"https://"
) || u.startsWith(
"http://"
)){
88
return
u.split(
"/"
)[2]
89
}
90
return
""
91
}
92
if
(url) screenshot();
Callers
1
screenshot
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected