vex icon indicating copy to clipboard operation
vex copied to clipboard

Invalid uuid validated

Open datafoo opened this issue 7 years ago • 0 comments

A uuid with characters outside the hexadecimal characters is wrongly validated.

Example: a462cc9d-4322-4c96-a195-f8e1b00881fg

iex(1)> Vex.Validators.Uuid.validate("a462cc9d-4322-4c96-a195-f8e1b00881fg", format: :default)
:ok
iex(2)> UUID.info("a462cc9d-4322-4c96-a195-f8e1b00881fg")
{:error,
 "Invalid argument; Not a valid UUID: a462cc9d-4322-4c96-a195-f8e1b00881fg"}

datafoo avatar Dec 17 '18 08:12 datafoo