MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / getHostName

Function getHostName

lib/models/solid-host.mjs:58–61  ·  view source on GitHub ↗
(urlStr)

Source from the content-addressed store, hash-verified

56}
57
58function getHostName (urlStr) {
59 const match = urlStr.match(/^\w+:\/*([^/]+)/)
60 return match ? match[1] : ''
61}
62
63export default SolidHost

Callers 1

allowsSessionForMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected