Skip to content
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 @@ -16,8 +16,8 @@ const schema = yup.object().shape({
name: yup
.string()
.required('Name is required')
.matches(/^[A-Za-z0-9.{}\-_\s]+$/, {
message: 'Name is not valid',
.matches(/^[A-Za-z0-9.{}\-_\s\[\]]+$/, {
message: 'Name should have only allowed symbols A-Za-z0-9.{}[]-_',
}),
});
const cx = classNames.bind(styles);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const schema = yup.object().shape({
name: yup
.string()
.required('Name is required')
.matches(/^[A-Za-z0-9.{}\-_\s]+$/, {
message: 'Name should have only allowed symbols A-Za-z0-9.{}-_ ',
.matches(/^[A-Za-z0-9.{}\-_\s\[\]]+$/, {
message: 'Name should have only allowed symbols A-Za-z0-9.{}[]-_',
}),
});
const cx = classNames.bind(styles);
Expand Down