mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
limit data base filename in ZIP export to 30 characters
This commit is contained in:
parent
caa6e9ee72
commit
16563eaba4
@ -73,6 +73,10 @@ function exportToZip(taskContext, branch, format, res) {
|
|||||||
|
|
||||||
let fileName = baseFileName;
|
let fileName = baseFileName;
|
||||||
|
|
||||||
|
if (fileName.length > 30) {
|
||||||
|
fileName = fileName.substr(0, 30);
|
||||||
|
}
|
||||||
|
|
||||||
// if the note is already named with extension (e.g. "jquery.js"), then it's silly to append exact same extension again
|
// if the note is already named with extension (e.g. "jquery.js"), then it's silly to append exact same extension again
|
||||||
if (newExtension && existingExtension !== "." + newExtension.toLowerCase()) {
|
if (newExtension && existingExtension !== "." + newExtension.toLowerCase()) {
|
||||||
fileName += "." + newExtension;
|
fileName += "." + newExtension;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user