From 956e44efd75941d7b6613a947de663923d5be7b3 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Tue, 8 May 2018 09:11:30 +1000 Subject: [PATCH] Korean uses ascii spaces, not ideographic spaces --- src/js/index.js | 2 +- src/js/jsbip39.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/index.js b/src/js/index.js index fc7e13b..1e8b616 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -1155,7 +1155,7 @@ 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; diff --git a/src/js/jsbip39.js b/src/js/jsbip39.js index 95a2a0e..3230e3b 100644 --- a/src/js/jsbip39.js +++ b/src/js/jsbip39.js @@ -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 = " "; - if (language == "japanese" || language == "korean") { + if (language == "japanese") { space = "\u3000"; // ideographic space } return words.join(space); -- 2.41.0