changed: less agressive file name sanitization.

Should be enough for Windows at least...
This commit is contained in:
quenousimporte 2023-09-14 17:31:02 +02:00
parent 6963569a7d
commit 8f01d2f185
1 changed files with 2 additions and 1 deletions

View File

@ -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)