Skip to content

Commit

Permalink
hotfix: feedback form newline (#114)
Browse files Browse the repository at this point in the history
* hotfix: feedback form newline

* hotfix: add at, hash, dollar, percent signs

* hotfix: add asterisk, brackets
  • Loading branch information
Segodnya authored Aug 4, 2023
1 parent 93db195 commit 2960590
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 = /^[a-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 2960590

Please sign in to comment.