Skip to content

Comments

Fix: Fix Object ID decoding logic for uppercase HEX string#274

Merged
zookzook merged 1 commit intozookzook:masterfrom
KirillDavydov:uppercase_object_id
Apr 17, 2025
Merged

Fix: Fix Object ID decoding logic for uppercase HEX string#274
zookzook merged 1 commit intozookzook:masterfrom
KirillDavydov:uppercase_object_id

Conversation

@KirillDavydov
Copy link
Contributor

prior tho this change BSON.ObjectId.decode!/ was working incorrectly with uppercase hex strings.
It mapped A->0, B->1, C->2...F ->5
Instead of A->10, B->11... F->15

@KirillDavydov
Copy link
Contributor Author

@zookzook can you please take a look?

Copy link
Owner

@zookzook zookzook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thank you!

@zookzook zookzook merged commit fa7890b into zookzook:master Apr 17, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants