]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Phrase is normalized before checking for errors
authorIan Coleman <coleman.ian@gmail.com>
Sat, 27 Sep 2014 11:51:06 +0000 (21:51 +1000)
committerIan Coleman <coleman.ian@gmail.com>
Sat, 27 Sep 2014 11:51:06 +0000 (21:51 +1000)
bip39-standalone.html
src/js/index.js

index b062b2e3c4aa9bfaf06c4aa60b9b2477240f3283..6125ce3d1849bb3c83d42d39ec00d90715817f32 100644 (file)
@@ -22900,6 +22900,7 @@ WORDLISTS = {
     function findPhraseErrors(phrase) {
         // TODO make this right
         // Preprocess the words
+        phrase = mnemonic.normalizeString(phrase);
         var parts = phrase.split(" ");
         var proper = [];
         for (var i=0; i<parts.length; i++) {
index d6f752db19995a280d1210954a715526df940131..5b8aedb1f866dbba395135ebc59276b9e3068343 100644 (file)
     function findPhraseErrors(phrase) {
         // TODO make this right
         // Preprocess the words
+        phrase = mnemonic.normalizeString(phrase);
         var parts = phrase.split(" ");
         var proper = [];
         for (var i=0; i<parts.length; i++) {