Skip to content

Commit 9dbeb4d

Browse files
committed
Add check for dot
1 parent 785aeb4 commit 9dbeb4d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/commands/ExportAll.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ export class ExportAll {
128128

129129
let fileSuffix = "";
130130
if (fileExtension && item.type === "file") {
131-
fileSuffix = `.${fileExtension}`;
131+
fileSuffix = fileExtension.startsWith(`.`)
132+
? fileExtension
133+
: `.${fileExtension}`;
132134
}
133135

134136
if (namedExports) {

0 commit comments

Comments
 (0)