mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-28 06:34:15 +00:00
feat: improve tag selector
This commit is contained in:
parent
a09b3cb56d
commit
de63677650
5 changed files with 104 additions and 73 deletions
|
|
@ -26,7 +26,7 @@ export const tagsSchema = z
|
|||
z
|
||||
.string()
|
||||
.min(2, { error: "Tags must be at least 2 characters long" })
|
||||
.max(64, { error: "Tags cannot be more than 20 characters long" })
|
||||
.max(20, { error: "Tags cannot be more than 20 characters long" })
|
||||
.regex(/^[a-z0-9-_]+$/, {
|
||||
error: "Tags can only contain lowercase letters, numbers, dashes, and underscores.",
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue