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
make utils.normalize null-safe, #3469
zadamca4e1c19a72b
diff --git a/package.json b/package.jsonindex 957ca7b290..51eedb7198 100644--- a/package.json+++ b/package.json@@ -33,7 +33,7 @@"@excalidraw/excalidraw": "0.13.0","archiver": "5.3.1","async-mutex": "0.4.0",- "axios": "1.2.1",+ "axios": "1.2.2","better-sqlite3": "7.4.5","chokidar": "3.5.3","cls-hooked": "4.2.2",diff --git a/src/services/utils.js b/src/services/utils.jsindex 8164f48e44..f243e28333 100644--- a/src/services/utils.js+++ b/src/services/utils.js@@ -291,6 +291,10 @@ function deferred() {}function removeDiacritic(str) {+ if (!str) {+ return "";+ }+return str.normalize("NFD").replace(/\p{Diacritic}/gu, "");}