export default function normalizeText(txt) { return txt .replace(/\n|\r|\n\r/g, " ") .replace(/ {2,}/g, " ") .trim(); }