Fix issue where formatted mnemonic with newlines would fail even though it looks correct.

This commit is contained in:
Alex Hart
2021-04-07 15:32:38 -03:00
parent 41e6097ac5
commit f400504898

View File

@@ -40,7 +40,7 @@ public class PaymentsRecoveryPasteFragment extends Fragment {
next.setOnClickListener(v -> {
String mnemonic = input.getText().toString();
String[] words = mnemonic.split(" ");
String[] words = mnemonic.split("\\s+");
if (words.length != PaymentsConstants.MNEMONIC_LENGTH) {
showErrorDialog();