MCPcopy 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
85function 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}
92if (url) screenshot();

Callers 1

screenshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected