File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ for (let i = 0; i < 256; ++i) {
1313export function unsafeStringify ( arr , offset = 0 ) {
1414 // Note: Be careful editing this code! It's been tuned for performance
1515 // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
16+ //
17+ // Note to future-self: No, you can't remove the `toLowerCase()` call.
18+ // REF: https://github.com/uuidjs/uuid/pull/677#issuecomment-1757351351
1619 return (
1720 byteToHex [ arr [ offset + 0 ] ] +
1821 byteToHex [ arr [ offset + 1 ] ] +
@@ -34,7 +37,7 @@ export function unsafeStringify(arr, offset = 0) {
3437 byteToHex [ arr [ offset + 13 ] ] +
3538 byteToHex [ arr [ offset + 14 ] ] +
3639 byteToHex [ arr [ offset + 15 ] ]
37- ) ;
40+ ) . toLowerCase ( ) ;
3841}
3942
4043function stringify ( arr , offset = 0 ) {
You can’t perform that action at this time.
0 commit comments