Skip to content

Build your personal knowledge base with Trilium Notes

fixed disabled prefix in case of unsafe import to conform to new attribute name pattern constraints

zadamb7b1324dd0b2
diff --git a/src/services/import/zip.js b/src/services/import/zip.js
index ddbe476108..7dc61ef668 100644
--- a/src/services/import/zip.js
+++ b/src/services/import/zip.js
@@ -158,7 +158,7 @@ async function importZip(taskContext, fileBuffer, importRootNote) {
}
if (taskContext.data.safeImport && attributeService.isAttributeDangerous(attr.type, attr.name)) {
- attr.name = 'disabled-' + attr.name;
+ attr.name = 'disabled:' + attr.name;
}
attributes.push(attr);