From 52e6eb81c8e464e12cea1ffc75104ca726daaa1a Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Mon, 7 Nov 2016 11:33:47 +1100 Subject: jsbip39 updated to latest version --- src/js/jsbip39.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/js') 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) { self.check = function(mnemonic) { var mnemonic = self.splitWords(mnemonic); - if (mnemonic.length % 3 > 0) { + if (mnemonic.length == 0 || mnemonic.length % 3 > 0) { return false } // idx = map(lambda x: bin(self.wordlist.index(x))[2:].zfill(11), mnemonic) -- cgit v1.2.3