the universal sandbox runtime for agents and humans. pocketenv.io
sandbox openclaw agent claude-code vercel-sandbox deno-sandbox cloudflare-sandbox atproto sprites daytona
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add regex validation for settings name

+8 -1
+8 -1
apps/web/src/pages/settings/Settings.tsx
··· 9 9 import { useNotyf } from "../../hooks/useNotyf"; 10 10 11 11 const settingsSchema = z.object({ 12 - name: z.string().trim().min(1, "Name is required"), 12 + name: z 13 + .string() 14 + .trim() 15 + .min(1, "Name is required") 16 + .regex( 17 + /^[a-zA-Z0-9]+([_-][a-zA-Z0-9]+)*$/, 18 + "Name must contain only letters, numbers, hyphens, or underscores (no spaces)", 19 + ), 13 20 description: z.string().trim().optional(), 14 21 topics: z.string().trim().optional(), 15 22 });