mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
refactor: remove max(2) in languageSchema
This commit is contained in:
parent
77f5965cdc
commit
8ad101ce7b
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ const fileSchema = z.custom<File>((value) => value instanceof File);
|
|||
|
||||
const percentageSchema = z.coerce.number().int().gte(1).lte(100);
|
||||
|
||||
const languageSchema = z.string().max(2).transform((val, ctx) => {
|
||||
const languageSchema = z.string().transform((val, ctx) => {
|
||||
if (!ISO6391.validate(val)) {
|
||||
ctx.addIssue({
|
||||
code: z.ZodIssueCode.custom,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue