* @param {string} s * @returns {boolean}
(s)
| 46 | * @returns {boolean} |
| 47 | */ |
| 48 | function 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 |
no outgoing calls
no test coverage detected
searching dependent graphs…