Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2025

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