Skip to content

Commit 4fe356f

Browse files
committed
ValidationMessages: rename message key.
No functional changes.
1 parent ea18abc commit 4fe356f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/main/java/ru/mystamps/web/model/AddCategoryForm.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public class AddCategoryForm implements AddCategoryDto {
7373
),
7474
@Pattern(
7575
regexp = CATEGORY_NAME_NO_REPEATING_HYPHENS_REGEXP,
76-
message = "{value.repeating_hyphen}",
76+
message = "{value.repeating-hyphen}",
7777
groups = Group.Level4.class
7878
),
7979
@Pattern(
@@ -106,7 +106,7 @@ public class AddCategoryForm implements AddCategoryDto {
106106
),
107107
@Pattern(
108108
regexp = CATEGORY_NAME_NO_REPEATING_HYPHENS_REGEXP,
109-
message = "{value.repeating_hyphen}",
109+
message = "{value.repeating-hyphen}",
110110
groups = Group.Level4.class
111111
),
112112
@Pattern(

src/main/java/ru/mystamps/web/model/AddCountryForm.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public class AddCountryForm implements AddCountryDto {
7373
),
7474
@Pattern(
7575
regexp = COUNTRY_NAME_NO_REPEATING_HYPHENS_REGEXP,
76-
message = "{value.repeating_hyphen}",
76+
message = "{value.repeating-hyphen}",
7777
groups = Group.Level4.class
7878
),
7979
@Pattern(
@@ -106,7 +106,7 @@ public class AddCountryForm implements AddCountryDto {
106106
),
107107
@Pattern(
108108
regexp = COUNTRY_NAME_NO_REPEATING_HYPHENS_REGEXP,
109-
message = "{value.repeating_hyphen}",
109+
message = "{value.repeating-hyphen}",
110110
groups = Group.Level4.class
111111
),
112112
@Pattern(

src/main/resources/ru/mystamps/i18n/ValidationMessages.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ value.invalid-length = Value length must be equals to {max} characters
2828
value.invalid-en-chars = Value must consist only latin letters, hyphen or spaces
2929
value.invalid-ru-chars = Value must consist only Russian letters, hyphen or spaces
3030
value.hyphen = Value must not start or end with hyphen
31-
value.repeating_hyphen = Value must not contain repetition of hyphen
31+
value.repeating-hyphen = Value must not contain repetition of hyphen
3232
value.empty = Value must not be empty
3333

3434
login.invalid = Login must consist only latin letters, digits, dot, hyphen or underscore

src/main/resources/ru/mystamps/i18n/ValidationMessages_ru.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ value.invalid-length = Значение должно быть длинной {ma
2828
value.invalid-en-chars = Значение может содержать только латинские буквы, дефис или пробел
2929
value.invalid-ru-chars = Значение может содержать только кирилические буквы, дефис или пробел
3030
value.hyphen = Значение не должно начинаться или заканчиваться знаком дефиса
31-
value.repeating_hyphen = Значение не должно содержать повторяющиеся знаки дефиса
31+
value.repeating-hyphen = Значение не должно содержать повторяющиеся знаки дефиса
3232
value.empty = Значение не должно быть пустым
3333

3434
login.invalid = Логин может состоять только из латинских букв, цифр, точки, дефиса или символа подчёркивания

0 commit comments

Comments
 (0)