From 0756b871f13a0af66edac180f3c562fa6504c9ca Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 8 Jun 2026 17:16:47 +0000 Subject: [PATCH] Fix PDF filename: keep date as YYYY-MM-DD (no stripping of hyphens) https://claude.ai/code/session_01MkM7p8Us3L8YAfLKGA13NS --- app/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/index.html b/app/index.html index 417a8de..9baf860 100644 --- a/app/index.html +++ b/app/index.html @@ -1795,7 +1795,7 @@ function buildPDF() { const safeName = s => (s || "").replace(/[^a-zA-Z0-9_\-]/g, "_").replace(/_+/g, "_").replace(/^_|_$/g, ""); const fnIssuer = safeName(sName); - const fnDate = (iDate || "").replace(/-/g, ""); + const fnDate = iDate || ""; const fnNo = safeName(iNo); const parts = [fnIssuer, fnDate, fnNo].filter(Boolean); doc.save(parts.length ? parts.join("_") + ".pdf" : "invoice.pdf");