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 26182ee commit 33eafdbCopy full SHA for 33eafdb
src/app/src/components/shared/item/ItemCardForm.vue
@@ -66,7 +66,7 @@ const schema = computed(() => z.object({
66
prefix: z.preprocess(
67
val => val === '' ? null : val,
68
z.string()
69
- .regex(/^\d+$/, 'Prefix be a string containing only digits')
+ .regex(/^\d+$/, 'Prefix must be a string containing only digits')
70
.refine(
71
(prefix: string | null | undefined) => {
72
if (prefix === null || prefix === undefined) {
@@ -77,7 +77,7 @@ const schema = computed(() => z.object({
77
78
return Number.isInteger(num) && num >= 0
79
},
80
- 'Prefix must be a positive integer',
+ 'Prefix must be a non-negative integer',
81
)
82
.nullish(),
83
),
0 commit comments