aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/js/jsbip39.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/jsbip39.js b/src/js/jsbip39.js
index 80ce656..67ba5a7 100644
--- a/src/js/jsbip39.js
+++ b/src/js/jsbip39.js
@@ -98,7 +98,7 @@ var Mnemonic = function(language) {
98 98
99 self.check = function(mnemonic) { 99 self.check = function(mnemonic) {
100 var mnemonic = self.splitWords(mnemonic); 100 var mnemonic = self.splitWords(mnemonic);
101 if (mnemonic.length % 3 > 0) { 101 if (mnemonic.length == 0 || mnemonic.length % 3 > 0) {
102 return false 102 return false
103 } 103 }
104 // idx = map(lambda x: bin(self.wordlist.index(x))[2:].zfill(11), mnemonic) 104 // idx = map(lambda x: bin(self.wordlist.index(x))[2:].zfill(11), mnemonic)