File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/main/java/ru/mystamps/web Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ public class ActivateAccountForm implements ActivateAccountDto {
69
69
groups = Login3Checks .class
70
70
),
71
71
@ Pattern (
72
- regexp = ValidationRules .LOGIN_REPEATING_CHARS_REGEXP ,
72
+ regexp = ValidationRules .LOGIN_NO_REPEATING_CHARS_REGEXP ,
73
73
message = "{login.repetition_chars}" ,
74
74
groups = Login4Checks .class
75
75
)
Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ public final class ValidationRules {
24
24
public static final int LOGIN_MIN_LENGTH = 2 ;
25
25
public static final int LOGIN_MAX_LENGTH = Db .User .LOGIN_LENGTH ;
26
26
public static final String LOGIN_REGEXP = "[-_\\ .a-zA-Z0-9]+" ;
27
- public static final String LOGIN_REPEATING_CHARS_REGEXP = "(?!.+[-_.]{2,}).+" ;
27
+ @ SuppressWarnings ("PMD.LongVariable" )
28
+ public static final String LOGIN_NO_REPEATING_CHARS_REGEXP = "(?!.+[-_.]{2,}).+" ;
28
29
29
30
public static final int NAME_MAX_LENGTH = Db .User .NAME_LENGTH ;
30
31
public static final String NAME_REGEXP = "[- \\ p{L}]+" ;
You can’t perform that action at this time.
0 commit comments