Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/AndrewWalsh/openapi-devtools
/ safelyGetURLHost
Function
safelyGetURLHost
src/utils/helpers.ts:91–98 ·
view source on GitHub ↗
(url: string)
Source
from the content-addressed store, hash-verified
89
};
90
91
export
const
safelyGetURLHost = (url: string): string | null => {
92
try {
93
const
{ host } =
new
URL(url);
94
return
host;
95
} catch (e) {
96
return
null;
97
}
98
};
Callers
1
getCurrentTab
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected