Regex in validateData geändert

This commit is contained in:
Kevin Maier 2023-01-17 16:02:29 +01:00
parent d858ff8f8d
commit 83af3a6066

View File

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