We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9dd3b3 commit 8824911Copy full SHA for 8824911
src/lib/zod/schema.ts
@@ -75,7 +75,7 @@ export const workBookSchema = z.object({
75
.string()
76
.min(0, { message: '' })
77
.max(30, { message: '30文字になるまで削除してください' }) // 問題集(カリキュラムと解法別)をURLで識別するためのオプション。a-z、0-9、(-)ハイフンのみ使用可能。例: bfs、dfs、dp、union-find、2-sat。
78
- .transform((value) => (value === '' ? undefined : value))
+ .transform((value) => (value === '' ? undefined : value.toLowerCase()))
79
.refine((value) => value === undefined || isValidUrlSlug(value), {
80
message: '半角英小文字、数字、ハイフンのみ使用可能です',
81
})
0 commit comments