MCPcopy Index your code
hub / github.com/nodejs/node / isIPv6

Function isIPv6

lib/internal/net.js:48–53  ·  view source on GitHub ↗

* @param {string} s * @returns {boolean}

(s)

Source from the content-addressed store, hash-verified

46 * @returns {boolean}
47 */
48function isIPv6(s) {
49 // TODO(aduh95): Replace RegExpPrototypeTest with RegExpPrototypeExec when it
50 // no longer creates a perf regression in the dns benchmark.
51 // eslint-disable-next-line node-core/avoid-prototype-pollution
52 return RegExpPrototypeTest(IPv6Reg, s);
53}
54
55/**
56 * @param {string} s

Callers 7

isIpv6LinkLocalFunction · 0.85
isIPFunction · 0.85
mainFunction · 0.85
validateResultFunction · 0.85
test-dns-ipv6.jsFile · 0.85
validateResultFunction · 0.85
checkAAAAFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…