BAEL-4430: Update the email regexp pattern (#9893)

This commit is contained in:
kwoyke 2020-08-18 16:12:35 +02:00 committed by GitHub
parent 3f3bbe4a0d
commit 1ed8b7a2bf
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ public class User {
@Max(value = 65, message = "Age should not be greater than 65") @Max(value = 65, message = "Age should not be greater than 65")
private int age; private int age;
@Email(regexp=".@.\\..*", message = "Email should be valid") @Email(regexp=".*@.*\\..*", message = "Email should be valid")
private String email; private String email;
public Long getId() { public Long getId() {