Skip to content

Commit a603685

Browse files
committed
normalize strings before calculation hashes, #4435
1 parent 93dcce2 commit a603685

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/services/utils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ function isElectron() {
6363
}
6464

6565
function hash(text) {
66+
text = text.normalize();
67+
6668
return crypto.createHash('sha1').update(text).digest('base64');
6769
}
6870

0 commit comments

Comments
 (0)