]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blobdiff - src/js/jsbip39.js
Korean uses ascii spaces, not ideographic spaces
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / src / js / jsbip39.js
index 025f6258d7d8462427c993b84d94aed9d1483f0c..3230e3bb46f275356bf3db523d85f66f36d65f3e 100644 (file)
@@ -156,14 +156,7 @@ var Mnemonic = function(language) {
     }
 
     self.normalizeString = function(str) {
-        if (typeof str.normalize == "function") {
-            return str.normalize("NFKD");
-        }
-        else {
-            // TODO decide how to handle this in the future.
-            // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize
-            return str;
-        }
+        return str.normalize("NFKD");
     }
 
     function byteArrayToWordArray(data) {