Commit 57cab90b3a109db6ff28e65a8c531700227f2f60
Committed by
GitHub
Merge pull request #3063 from YevhenBondarenko/develop/2.5.3-email-validator
refactored DataValidator email pattern
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -31,7 +31,7 @@ import java.util.regex.Pattern; |
31 | 31 | @Slf4j |
32 | 32 | public abstract class DataValidator<D extends BaseData<?>> { |
33 | 33 | private static final Pattern EMAIL_PATTERN = |
34 | - Pattern.compile("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,6}$", Pattern.CASE_INSENSITIVE); | |
34 | + Pattern.compile("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}$", Pattern.CASE_INSENSITIVE); | |
35 | 35 | |
36 | 36 | public void validate(D data, Function<D, TenantId> tenantIdFunction) { |
37 | 37 | try { | ... | ... |