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