mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Fix issue where formatted mnemonic with newlines would fail even though it looks correct.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user