1export function getCookie(name) { 2 const dc = document.cookie; 3 const prefix = `${name}=`; 4 let begin = dc.indexOf(`; ${prefix}`); 5 if (begin == -1) { 6 begin = dc.indexOf(prefix); 7 if (begin != 0) return null; 8 } else { 9 begin += 2; 10 var end = document.cookie.indexOf(";", begin); 11 if (end == -1) { 12 end = dc.length; 13 } 14 } 15 // because unescape has been deprecated, replaced with decodeURI 16 // return unescape(dc.substring(begin + prefix.length, end)); 17 return decodeURI(dc.substring(begin + prefix.length, end)); 18}
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.