colinhacks / zod

TypeScript-first schema validation with static type inference
https://zod.dev
MIT License
33.92k stars 1.18k forks source link

String is hex #3682

Open offizium-berndstorath opened 3 months ago

offizium-berndstorath commented 3 months ago

Be able to check if string is hex

Could also be done with regex

z.string().regex(/[0-9A-Fa-f]+/g)