Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ splitHost
Function
splitHost
lib/tls.js:299–301 ·
view source on GitHub ↗
(host)
Source
from the content-addressed store, hash-verified
297
}
298
299
function
splitHost(host) {
300
return
unfqdn(host).replace(/[A-Z]/g, toLowerCase).split(
'.'
);
301
}
302
303
function
check(hostParts, pattern, wildcards) {
304
// Empty strings, null, undefined, etc. never match.
Callers
2
check
Function · 0.85
tls.js
File · 0.85
Calls
2
unfqdn
Function · 0.85
split
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…