mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 09:56:36 +01:00
fix doubling of extension
This commit is contained in:
@@ -62,7 +62,7 @@ async function exportToTar(exportContext, branch, format, res) {
|
||||
const existingExtension = path.extname(fileName).toLowerCase();
|
||||
|
||||
// if the note is already named with extension (e.g. "jquery.js"), then it's silly to append exact same extension again
|
||||
if (existingExtension !== extension) {
|
||||
if (existingExtension !== "." + extension) {
|
||||
fileName += "." + extension;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user