fix doubling of extension

This commit is contained in:
zadam
2019-07-11 20:40:40 +02:00
parent 9de2927304
commit b9373806cf
3 changed files with 5 additions and 5 deletions

View File

@@ -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;
}