fix: added pattern checking for urls while creating a team (#24777)

* fix: added pattern checking for urls while creating a team

* update: used slugify and replace logic

* update

* Fix formatting of rules in CreateANewTeamForm

---------

Co-authored-by: Dhairyashil Shinde <[email protected]>
Co-authored-by: Anik Dhabal Babu <[email protected]>
Co-authored-by: Anik Dhabal Babu <[email protected]>
This commit is contained in:
authored and GitHub committed 2025-11-22 15:49:28 +00:00
1 parent e29aa2097e
commit 8e1a0999d2
2 files changed
+2 -1

No files matched your search

@@ -147,7 +147,7 @@ export const CreateANewTeamForm = (props: CreateANewTeamFormProps) => {
value={value}
defaultValue={value}
onChange={(e) => {
newTeamFormMethods.setValue("slug", slugify(e?.target.value, true), {
newTeamFormMethods.setValue("slug", slugify(e?.target.value, true).replace(/\./g, ""), {
shouldTouch: true,
});
newTeamFormMethods.clearErrors("slug");