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

Function isIPv4

lib/internal/net.js:37–42  ·  view source on GitHub ↗

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

(s)

Source from the content-addressed store, hash-verified

35 * @returns {boolean}
36 */
37function isIPv4(s) {
38 // TODO(aduh95): Replace RegExpPrototypeTest with RegExpPrototypeExec when it
39 // no longer creates a perf regression in the dns benchmark.
40 // eslint-disable-next-line node-core/avoid-prototype-pollution
41 return RegExpPrototypeTest(IPv4Reg, s);
42}
43
44/**
45 * @param {string} s

Callers 6

isIPFunction · 0.85
shouldUseProxyMethod · 0.85
mainFunction · 0.85
validateResultFunction · 0.85
validateResultFunction · 0.85
checkAFunction · 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…