1// [email protected] downloaded from https://ga.jspm.io/npm:[email protected]/index.js 2 3import i from"ip-regex";import{isMatch as e}from"super-regex";const t=15;const r=45;const n={timeout:400};function isIP(t){return e(i({exact:true}),t.slice(0,r),n)}function isIPv6(t){return e(i.v6({exact:true}),t.slice(0,r),n)}function isIPv4(r){return e(i.v4({exact:true}),r.slice(0,t),n)}function ipVersion(i){return isIP(i)?isIPv6(i)?6:4:void 0}export{ipVersion,isIP,isIPv4,isIPv6}; 4
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.