Skip to content

Commit

Permalink
chore: add comment to future-self
Browse files Browse the repository at this point in the history
  • Loading branch information
broofa committed Oct 11, 2023
1 parent 53d8891 commit f078b0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/stringify.js
Expand Up @@ -13,6 +13,9 @@ for (let i = 0; i < 256; ++i) {
export function unsafeStringify(arr, offset = 0) {
// Note: Be careful editing this code! It's been tuned for performance
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
//
// Note to future-self: No, you can't remove the `toLowerCase()` call.
// REF: https://github.com/uuidjs/uuid/pull/677#issuecomment-1757351351
return (
byteToHex[arr[offset + 0]] +
byteToHex[arr[offset + 1]] +
Expand Down

0 comments on commit f078b0e

Please sign in to comment.