Regex in validateData geändert
This commit is contained in:
parent
d858ff8f8d
commit
83af3a6066
@ -242,7 +242,7 @@ public class Data {
|
|||||||
boolean passwordValid = false;
|
boolean passwordValid = false;
|
||||||
|
|
||||||
Pattern phoneNumberPattern = Pattern.compile("[0-9]*");
|
Pattern phoneNumberPattern = Pattern.compile("[0-9]*");
|
||||||
Pattern passwordPattern = Pattern.compile("^[^a-zA-Z0-9].*[0-9]$");
|
Pattern passwordPattern = Pattern.compile("^(?=.*[A-Za-z])(?=.*\\d)[A-Za-z\\d]{8,}$");
|
||||||
|
|
||||||
Scanner reader = new Scanner(System.in);
|
Scanner reader = new Scanner(System.in);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user