Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#314 incorrect work of the registration tooltip #315

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import java.lang.annotation.Target;

@NotBlank
@Pattern(regexp = "^[-_A-Za-z0-9]*$")
@Pattern(regexp = "^[-_A-Za-z0-9]*$", message = "{alert.username-wrong-format}")
@Size(min = 2, max = 20)
@Constraint(validatedBy = {})
@Target({ElementType.FIELD, ElementType.PARAMETER})
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/messages_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ btn.delete-from-wks=Delete from workspace
alert.password-wrong-format=Password must be between 8 and 20 characters \
and contain only latin letters, digits and symbols ~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/
alert.passwords-dont-match=Confirmation does not match the password
alert.username-wrong-format=The username must follow the ^[-_A-Za-z0-9]*$ pattern, that is, it must contain only Latin letters (in any case), numbers, hyphens and underscores.

text.heroes=The free service for sending messages about typos in the text on your website. After adding a widget to your site, visitors have the opportunity to highlight an error or typo and report it to the administrator.
text.features-header=FixIT helps websites
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/messages_ru.properties
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ alert.password-wrong-format=Пароль должен быть от 8 до 20 с
\ и содержать только буквы латинского алфавита,\
\ цифры и символы ~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/
alert.passwords-dont-match=Подтверждение не совпадает с паролем
alert.username-wrong-format=Имя должно соответствовать шаблону ^[-_A-Za-z0-9]*$, то есть содержать только буквы латинского алфавита (в любом регистре), цифры, дефисы и подчеркивания.

text.heroes=Бесплатный сервис для отправки сообщений об ошибках в тексте на Вашем сайте. После добавлении на ваш сайт виджета посетители имеют возможность выделить ошибку или опечатку и сообщить об этом администратору.
text.features-header=FixIT помогает сайтам
Expand Down
Loading