1import { CsrfUtils } from './csrfUtils.js'; 2 3export const EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; 4 5export function postJson(url, body) { 6 const { token } = CsrfUtils.getCsrfParamAndToken(); 7 return fetch(url, { 8 method: 'POST', 9 headers: { 'Content-Type': 'application/json', 'X-CSRF-Token': token }, 10 body: JSON.stringify(body), 11 }); 12}
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.