Compare commits

...

2 Commits

Author SHA1 Message Date
d4a351a4e2 Merge remote-tracking branch 'origin/master' 2023-01-17 16:02:39 +01:00
83af3a6066 Regex in validateData geändert 2023-01-17 16:02:29 +01:00

View File

@ -244,7 +244,7 @@ public class Data {
boolean passwordValid = false;
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);