Skip to content

Commit 4c51f2d

Browse files
committed
The size conversation resolved
1 parent 050447b commit 4c51f2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/gelecekbilimde/scienceplatform/common/util/validation/UsernameValidator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ public boolean isValid(String value, ConstraintValidatorContext context) {
2525

2626
if (value.length() <= 3 || value.length() >= 20) {
2727
context.disableDefaultConstraintViolation();
28-
context.buildConstraintViolationWithTemplate("Username must be between 3 and 20 characters long")
28+
context.buildConstraintViolationWithTemplate("must be between 3 and 20 characters long")
2929
.addConstraintViolation();
3030
return false;
3131
}
3232

3333
if (!lowerCasedValue.matches(USERNAME_REGEX)) {
3434
context.disableDefaultConstraintViolation();
35-
context.buildConstraintViolationWithTemplate("Username must be alphanumeric")
35+
context.buildConstraintViolationWithTemplate("must be alphanumeric")
3636
.addConstraintViolation();
3737
return false;
3838
}

0 commit comments

Comments
 (0)