Skip to content

Commit 4f985a2

Browse files
authored
Add trim to zod validation for project name in create project form (supabase#37590)
1 parent 768f781 commit 4f985a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/studio/pages/new/[slug].tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ const FormSchema = z.object({
111111
}),
112112
projectName: z
113113
.string()
114+
.trim()
114115
.min(1, 'Please enter a project name.') // Required field check
115116
.min(3, 'Project name must be at least 3 characters long.') // Minimum length check
116117
.max(64, 'Project name must be no longer than 64 characters.'), // Maximum length check

0 commit comments

Comments
 (0)