Skip to content

UUID tryParse #878

@lucianmli

Description

@lucianmli

Hello,

In the code for tryParse there isn't a check that the characters are in the 0-9a-fA-F range. So for an uuid like b0a6fe41-a360-6e22-3381-7de3410b4z07, the result of try parse is true.

Also the size should be exactly 36 chars with hyphens or it will also return true for
b0a6fe41-a360-6e22-3381-7de3410b4z07zzzz.

And if the format without hypes is supported, size should be restricted to exactly 32 chars,

RFC4122 states that the chars should be hex digits.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions