Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix enex checkboxes for mac, closes #3511
zadam4f4c3ef3f3e5
diff --git a/src/services/import/enex.js b/src/services/import/enex.jsindex 5f9489189b..f0598e0fda 100644--- a/src/services/import/enex.js+++ b/src/services/import/enex.js@@ -76,8 +76,8 @@ function importEnex(taskContext, file, parentNote) {content = content.replace(/<\/ol>\s*<li>/g, "</ol></li><li>");// Replace en-todo with unicode ballot box- content = content.replace(/<en-todo\s+checked="true"\/>/g, "\u2611 ");- content = content.replace(/<en-todo(\s+checked="false")?\/>/g, "\u2610 ");+ content = content.replace(/<en-todo\s+checked="true"\s*\/>/g, "\u2611 ");+ content = content.replace(/<en-todo(\s+checked="false")?\s*\/>/g, "\u2610 ");// Replace OneNote converted checkboxes with unicode ballot box based// on known hash of checkboxes for regular, p1, and p2 checkboxes