mirror of
https://github.com/zadam/trilium.git
synced 2024-09-20 23:55:59 +08:00
normalize strings before calculation hashes, #4435
This commit is contained in:
parent
93dcce2217
commit
a6036859b8
|
@ -63,6 +63,8 @@ function isElectron() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function hash(text) {
|
function hash(text) {
|
||||||
|
text = text.normalize();
|
||||||
|
|
||||||
return crypto.createHash('sha1').update(text).digest('base64');
|
return crypto.createHash('sha1').update(text).digest('base64');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue