export function normalizeText(value: string): string {
  return value
    .replace(/\u00a0/g, " ")
    .replace(/[łŁ]/g, "l")
    .normalize("NFD")
    .replace(/[\u0300-\u036f]/g, "")
    .toLowerCase()
    .replace(/[^a-z0-9\s-]/g, " ")
    .replace(/\s+/g, " ")
    .trim();
}

export function normalizeCode(value: string): string {
  return value.replace(/[^0-9]/g, "");
}
