diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-04-16 11:29:21 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-04-16 11:29:21 +0100 |
commit | 5fce581ce317b487058c274bf9ed42d71d02a3a7 (patch) | |
tree | 02b7c3dc0f4c23bbcea1ab8e8ae55a83c0f00883 /src/mnemonics/electrum-words.cpp | |
parent | Merge pull request #1956 (diff) | |
download | monero-5fce581ce317b487058c274bf9ed42d71d02a3a7.tar.xz |
mnemonics: ignore multiple whitespace between words
Diffstat (limited to '')
-rw-r--r-- | src/mnemonics/electrum-words.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mnemonics/electrum-words.cpp b/src/mnemonics/electrum-words.cpp index fd2c6a836..dbe6d7ea2 100644 --- a/src/mnemonics/electrum-words.cpp +++ b/src/mnemonics/electrum-words.cpp @@ -240,7 +240,7 @@ namespace crypto std::vector<std::string> seed; boost::algorithm::trim(words); - boost::split(seed, words, boost::is_any_of(" ")); + boost::split(seed, words, boost::is_any_of(" "), boost::token_compress_on); // error on non-compliant word list if (seed.size() != seed_length/2 && seed.size() != seed_length && |