Skip to content

Commit

Permalink
hotfix: add asterisk, brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
Segodnya committed Aug 4, 2023
1 parent a55ee28 commit 6d24d44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schemas/validationSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const passwordRules =
/^(?=.*[a-zа-яё])(?=.*[A-ZА-ЯЁ])[A-Za-zА-Яа-яЁё\d@$!%*#?&]+$/;
const emailRules = /^([A-Za-z0-9\-_@.]+)$/;
const nameRules = /^[а-яА-ЯЁё]+(-[а-яА-ЯЁё]+)?$/;
const commentRules = /^[\na-zA-Zа-яА-Я0-9 ,.!?;:@%$#-]*$/;
const commentRules = /^[\na-zA-Zа-яА-Я0-9 ,.!?;:@%$#*()-]*$/;
const commentMessage = "Некорректный комментарий";
const errorMessage = "Пожалуйста, проверьте, правильно ли указан адрес";
const emailMessage = "Некорректный e-mail";
Expand Down

0 comments on commit 6d24d44

Please sign in to comment.