Skip to content

Commit

Permalink
fix(group): participator regex
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnsonMao committed Nov 17, 2024
1 parent be2fc6e commit e6527e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Group/Form/useGroupForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const rules = {
.min(1, '請選擇學習領域'),
participator: z
.string()
.regex(/^(100|[1-9]?\d)$/, '請輸入整數,需大於 0,不可超過 100'),
.regex(/^(100|[1-9]\d|[1-9])$/, '請輸入整數,需大於 0,不可超過 100'),
area: z
.array(z.enum(AREAS.concat({ label: '待討論' }).map(({ label }) => label)))
.min(1, '請選擇地點'),
Expand Down

0 comments on commit e6527e0

Please sign in to comment.