]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Korean uses ascii spaces, not ideographic spaces
authorIan Coleman <ian@iancoleman.io>
Mon, 7 May 2018 23:11:30 +0000 (09:11 +1000)
committerIan Coleman <ian@iancoleman.io>
Mon, 7 May 2018 23:11:30 +0000 (09:11 +1000)
src/js/index.js
src/js/jsbip39.js

index fc7e13b0e10822e8695e604948c58d89b51255f9..1e8b61602f32e832e94a1cf9e6a790ebcf8a361d 100644 (file)
     function wordArrayToPhrase(words) {
         var phrase = words.join(" ");
         var language = getLanguageFromPhrase(phrase);
     function wordArrayToPhrase(words) {
         var phrase = words.join(" ");
         var language = getLanguageFromPhrase(phrase);
-        if (language == "japanese" || language == "korean") {
+        if (language == "japanese") {
             phrase = words.join("\u3000");
         }
         return phrase;
             phrase = words.join("\u3000");
         }
         return phrase;
index 95a2a0eb1f2fcc775d340db4ebec954d35faa914..3230e3bb46f275356bf3db523d85f66f36d65f3e 100644 (file)
@@ -149,7 +149,7 @@ var Mnemonic = function(language) {
         // Set space correctly depending on the language
         // see https://github.com/bitcoin/bips/blob/master/bip-0039/bip-0039-wordlists.md#japanese
         var space = " ";
         // Set space correctly depending on the language
         // see https://github.com/bitcoin/bips/blob/master/bip-0039/bip-0039-wordlists.md#japanese
         var space = " ";
-        if (language == "japanese" || language == "korean") {
+        if (language == "japanese") {
             space = "\u3000"; // ideographic space
         }
         return words.join(space);
             space = "\u3000"; // ideographic space
         }
         return words.join(space);