Skip to content

Commit 7e68655

Browse files
committed
remove duplicating extension
1 parent 334152b commit 7e68655

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/dropbox/actions/download-file-to-tmp/download-file-to-tmp.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ export default {
4747

4848
// Use provided name or original name
4949
const name = metadata.name;
50-
const extension = name.split(".").pop();
51-
const fileName = this.name || `${name}.${extension}`;
50+
const fileName = this.name || name;
5251

5352
const cleanFileName = fileName.replace(/[?$#&{}[]<>\*!@:\+\\\/]/g, "");
5453

0 commit comments

Comments
 (0)