diff --git a/client/src/pages/CommunityPage.tsx b/client/src/pages/CommunityPage.tsx index 54ecc46..9760603 100644 --- a/client/src/pages/CommunityPage.tsx +++ b/client/src/pages/CommunityPage.tsx @@ -23,7 +23,6 @@ import instance from "../security/http"; import { ChatBubbleOvalLeftEllipsisIcon, EllipsisHorizontalIcon, - HandThumbsUpIcon, MagnifyingGlassIcon, PlusIcon, XMarkIcon, diff --git a/client/src/pages/CreatePostPage.tsx b/client/src/pages/CreatePostPage.tsx index 29b6ce4..eb533ff 100644 --- a/client/src/pages/CreatePostPage.tsx +++ b/client/src/pages/CreatePostPage.tsx @@ -17,19 +17,12 @@ const validationSchema = Yup.object({ .trim() .min(3, "Title must be at least 3 characters") .max(200, "Title must be at most 200 characters") - .matches( - /^[a-zA-Z0-9\s]+$/, - "Title can only contain letters, numbers, and spaces" - ) .required("Title is required"), + content: Yup.string() .trim() .min(3, "Content must be at least 3 characters") .max(500, "Content must be at most 500 characters") - .matches( - /^[a-zA-Z0-9,\s!"'-]*$/, - "Only letters, numbers, commas, spaces, exclamation marks, quotations, and common symbols are allowed" - ) .required("Content is required"), postImage: Yup.mixed(), });