From 8f01d2f1851808a1da6475c601a329e5118d46dd Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Thu, 14 Sep 2023 17:31:02 +0200 Subject: [PATCH] changed: less agressive file name sanitization. Should be enough for Windows at least... --- main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 64c4885..68fca63 100644 --- a/main.js +++ b/main.js @@ -998,7 +998,8 @@ function sharehtml() function getfilename(title) { - return title.replace(/[^a-z0-9]/gi, '_').toLowerCase() + ".md"; + //return title.replace(/[^a-z0-9]/gi, '_').toLowerCase() + ".md"; + return title.replace(/[\?\"<>|\*:\/\\]/g, "_") + ".md"; } function download(filename, content)