This commit is contained in:
Andrea Cavalli 2022-05-20 10:26:15 +02:00
parent 0289f6d05d
commit 93d501dbbf
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ public final class ConsoleInteractiveAuthenticationData implements Authenticatio
phoneNumber = ScannerUtils.askParameter("login", "Please type your phone number"); phoneNumber = ScannerUtils.askParameter("login", "Please type your phone number");
} while (phoneNumber.length() < 3); } while (phoneNumber.length() < 3);
long phoneNumberLong = Long.parseLong(phoneNumber.replaceAll("[\\D]", "")); long phoneNumberLong = Long.parseLong(phoneNumber.replaceAll("\\D", ""));
this.isBot = false; this.isBot = false;
this.phoneNumber = phoneNumberLong; this.phoneNumber = phoneNumberLong;