MCPcopy 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
299function splitHost(host) {
300 return unfqdn(host).replace(/[A-Z]/g, toLowerCase).split('.');
301}
302
303function check(hostParts, pattern, wildcards) {
304 // Empty strings, null, undefined, etc. never match.

Callers 2

checkFunction · 0.85
tls.jsFile · 0.85

Calls 2

unfqdnFunction · 0.85
splitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…