Skip to content

Commit 245a199

Browse files
authored
Merge pull request #169 from D3rJust1n/dev
capitalize VIN and license plate automatically
2 parents 14c2dcd + 2f18026 commit 245a199

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/lib/domain/vehicle.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,13 @@ export const vehicleSchema = z.object({
6262
.string()
6363
.min(2, 'It must be more than 1 character.')
6464
.max(50, 'It must be less than 50 characters.')
65+
.transform((val) => val.toUpperCase())
6566
.nullable(),
6667
vin: z
6768
.string()
6869
.min(2, 'It must be more than 1 character.')
6970
.max(50, 'It must be less than 50 characters.')
71+
.transform((val) => val.toUpperCase())
7072
.nullable(),
7173
color: z
7274
.string()

0 commit comments

Comments
 (0)