Skip to content

Commit

Permalink
fix:generated image name
Browse files Browse the repository at this point in the history
  • Loading branch information
micmro committed May 4, 2022
1 parent f95dda6 commit 250c9f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ export const deleteFile = (filePath) => {
* @returns
*/
export const makeFilename = (url) => {
return url.replace(/https?:\/\//, "").replace(/[\/:/]/g, "_");
return url.replace(/https?:\/\//, "").replace(/[\W]/g, "_");
};

0 comments on commit 250c9f9

Please sign in to comment.