diff --git a/src/modules/registratura/components/registry-table.tsx b/src/modules/registratura/components/registry-table.tsx index 51fae21..2bba085 100644 --- a/src/modules/registratura/components/registry-table.tsx +++ b/src/modules/registratura/components/registry-table.tsx @@ -524,7 +524,9 @@ function CopyNumberButton({ entry }: { entry: RegistryEntry }) { const handleCopy = (e: React.MouseEvent) => { e.stopPropagation(); - const text = `nr. ${entry.number} din ${formatDate(entry.date)}`; + // Extract plain number: "BTG-0042/2026" → "42", "US-0123/2026" → "123" + const plain = entry.number.replace(/^[A-Z]+-0*/, "").replace(/\/.*$/, ""); + const text = `nr. ${plain} din ${formatDate(entry.date)}`; void navigator.clipboard.writeText(text).then(() => { setCopied(true); setTimeout(() => setCopied(false), 1500);