Skip to content

Commit

Permalink
Fixes #959 - Unable to save share to file. bad formatted file name.
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM committed Feb 8, 2019
1 parent 0fa3674 commit 1108671
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class FileService {
dir => {
let fullFileName = new Date().toISOString().split(":").join("-").replace("T", "_")
.replace("Z", "_") +
fileName.split(" ").join("_");
fileName.replace(/[/\\?%*:|"<>]/g, "-").split(" ").join("_");
dir.getFile(fullFileName,
{ create: true },
fileEntry => {
Expand Down

0 comments on commit 1108671

Please sign in to comment.