Skip to content

Commit

Permalink
removed unwanted blankspace in names when using timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjandsingh committed Sep 12, 2022
1 parent 219b7d8 commit 0c16738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const getDestination = (req, file, cb) => {

const getFilename = (name, input) =>
name.split(".").slice(0, -1).join(".") +
`${input.useTimestamp ? "_" + Date.getUnixTime() : ""} ` +
`${input.useTimestamp ? "_" + Date.getUnixTime() : ""}` +
"." +
input.fileFormat;

Expand Down

0 comments on commit 0c16738

Please sign in to comment.