We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c535a3f commit d2f656bCopy full SHA for d2f656b
app/support/media-files/file-ext.ts
@@ -58,5 +58,5 @@ export function addFileExtension<T extends TypeInfo>(
58
59
export function setExtension(fileName: string, ext: string): string {
60
const { name } = parsePath(fileName);
61
- return formatPath({ name, ext });
+ return formatPath({ name, ext: ext ? `.${ext}` : '' }); // Add dot for Node18 compatibility
62
}
0 commit comments