Skip to content

Commit

Permalink
chore: fixed json schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
onmax committed Nov 19, 2024
1 parent 81edf44 commit 36a8bb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"email": "[email protected]",
"bluesky": "@ritvarsb.bsky.social",
"github": "ritvarsbiksis",
"linkedin": "ritvars-bikšis-283264113/",
"linkedin": "ritvars-bik%C5%A1is-283264113",
"facebook": "ritvars.biksis"
}
}
6 changes: 3 additions & 3 deletions server/utils/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export const validatorSchema = z.object({
twitter: z.string().regex(/^@?(\w){1,15}$/).optional(),
telegram: z.string().regex(/^@?(\w){5,32}$/).optional(),
discordInvitationUrl: z.string().url().optional(),
bluesky: z.string().regex(/^@?(\w){1,32}$/).optional(),
bluesky: z.string().regex(/^@?[\w.-]{1,100}$/).optional(),
github: z.string().regex(/^@?[\w-]{1,39}$/).optional(),
linkedin: z.string().regex(/^@?(\w){1,50}$/).optional(),
facebook: z.string().regex(/^@?(\w){1,50}$/).optional(),
linkedin: z.string().regex(/^@?[a-z0-9%-]{1,100}$/i).optional(),
facebook: z.string().regex(/^@?[\w.-]{1,100}$/).optional(),
instagram: z.string().regex(/^@?(\w){1,30}$/).optional(),
youtube: z.string().regex(/^@?(\w){1,50}$/).optional(),
}).optional(),
Expand Down

0 comments on commit 36a8bb4

Please sign in to comment.