Commit 5a3f8e344b6db28e4a1436ea21f0d3e36b365d2e
1 parent
89419c69
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 { | ... | ... |