changed: less agressive file name sanitization.
Should be enough for Windows at least...
This commit is contained in:
parent
6963569a7d
commit
8f01d2f185
3
main.js
3
main.js
|
@ -998,7 +998,8 @@ function sharehtml()
|
||||||
|
|
||||||
function getfilename(title)
|
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)
|
function download(filename, content)
|
||||||
|
|
Loading…
Reference in New Issue