Skip to content

Build your personal knowledge base with Trilium Notes

normalize strings before calculation hashes, #4435

zadama6036859b8bd
diff --git a/src/services/utils.js b/src/services/utils.js
index 517d65ef95..67cd328812 100644
--- a/src/services/utils.js
+++ b/src/services/utils.js
@@ -63,6 +63,8 @@ function isElectron() {
}
function hash(text) {
+ text = text.normalize();
+
return crypto.createHash('sha1').update(text).digest('base64');
}