diff --git a/src/ninja.brainwallet.js b/src/ninja.brainwallet.js index 8fd71a4..46980e3 100644 --- a/src/ninja.brainwallet.js +++ b/src/ninja.brainwallet.js @@ -12,9 +12,9 @@ ninja.wallets.brainwallet = { minPassphraseLength: 15, view: function () { - var key = document.getElementById("brainpassphrase").value.toString().replace(/^\s+|\s+$/g, ""); // trim white space + var key = document.getElementById("brainpassphrase").value.toString() document.getElementById("brainpassphrase").value = key; - var keyConfirm = document.getElementById("brainpassphraseconfirm").value.toString().replace(/^\s+|\s+$/g, ""); // trim white space + var keyConfirm = document.getElementById("brainpassphraseconfirm").value.toString() document.getElementById("brainpassphraseconfirm").value = keyConfirm; if (key == keyConfirm || document.getElementById("brainpassphraseshow").checked) { diff --git a/src/ninja.detailwallet.js b/src/ninja.detailwallet.js index 3f7d273..20ab5ce 100644 --- a/src/ninja.detailwallet.js +++ b/src/ninja.detailwallet.js @@ -37,7 +37,7 @@ ninja.wallets.detailwallet = { document.getElementById("detailprivkeypassphrase").focus(); return; } - var passphrase = document.getElementById("detailprivkeypassphrase").value.toString().replace(/^\s+|\s+$/g, ""); // trim white space + var passphrase = document.getElementById("detailprivkeypassphrase").value.toString() if (passphrase == "") { alert(ninja.translator.get("bip38alertpassphraserequired")); return;