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

fork-5.53.8
Alex Hart 2021-04-07 15:32:38 -03:00
rodzic 41e6097ac5
commit f400504898
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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();