Skip to content
Snippets Groups Projects
Commit 6c773dd8 authored by Alexa Valentová's avatar Alexa Valentová
Browse files

fix filenames

parent da8dacaa
Branches
No related tags found
No related merge requests found
Pipeline #20452 passed
2.14.0 2.14.1
...@@ -48,6 +48,13 @@ export default { ...@@ -48,6 +48,13 @@ export default {
window.fileName instanceof String) && window.fileName instanceof String) &&
window.fileName.length >= 1 window.fileName.length >= 1
) { ) {
window.fileName = (
window.
fileName.
replace(/\r\n|\n/, ' _ ').
replace(/\./, '_')
);
link.download = window.fileName; link.download = window.fileName;
} else { } else {
const date = new Date().toLocaleString(); const date = new Date().toLocaleString();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment