Why is this not a valid GUID? #674
Answered
by
broofa
matthiaslischka
asked this question in
Q&A
-
Before you begin...
Description of the problem"49C1577D-2CB7-41BB-1CF3-08D960A71AAF" should be a valid GUID imho. Recipe for reproducingimport { validate } from "uuid";
const isValid1 = validate("49C1577D-2CB7-41BB-1CF3-08D960A71AAF"); // <---- ?!
const isValid2 = validate("93595E16-CE95-4ACD-80F4-66CE17C6D906");
console.log({ isValid1 }); // false
console.log({ isValid2 }); // true Additional informationhttps://codesandbox.io/s/typescript-playground-export-forked-lecdtm I checked multiple online validators and all said that this Guid is valid. Dunno what's going on. THX and BR, EnvironmentNo response |
Beta Was this translation helpful? Give feedback.
Answered by
broofa
Jan 5, 2023
Replies: 1 comment 1 reply
-
Invalid The "1" in |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
broofa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Invalid
variant
field.The "1" in
1CF3
must be 8, 9, A, or B, per https://www.rfc-editor.org/rfc/rfc4122#section-4.1.1