Korean uses ascii spaces, not ideographic spaces

This commit is contained in:
Ian Coleman
2018-05-08 09:11:30 +10:00
parent 65cef19412
commit 956e44efd7
2 changed files with 2 additions and 2 deletions

View File

@@ -1155,7 +1155,7 @@
function wordArrayToPhrase(words) { function wordArrayToPhrase(words) {
var phrase = words.join(" "); var phrase = words.join(" ");
var language = getLanguageFromPhrase(phrase); var language = getLanguageFromPhrase(phrase);
if (language == "japanese" || language == "korean") { if (language == "japanese") {
phrase = words.join("\u3000"); phrase = words.join("\u3000");
} }
return phrase; return phrase;

View File

@@ -149,7 +149,7 @@ var Mnemonic = function(language) {
// Set space correctly depending on the language // Set space correctly depending on the language
// see https://github.com/bitcoin/bips/blob/master/bip-0039/bip-0039-wordlists.md#japanese // see https://github.com/bitcoin/bips/blob/master/bip-0039/bip-0039-wordlists.md#japanese
var space = " "; var space = " ";
if (language == "japanese" || language == "korean") { if (language == "japanese") {
space = "\u3000"; // ideographic space space = "\u3000"; // ideographic space
} }
return words.join(space); return words.join(space);