export function formatBarcode(barcode: string): string {
  return barcode
    ?.replace(/\s/g, '')
    .replace(/[:/,.]/g, '')
    .replace(/[PK:]/g, '')
    .replace(/(.{4})/g, '$1 ')
    .trim();
}
