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 50e253d5e8
commit 657d017a7c

View File

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