bwmarrin / snowflake

A simple to use Go (golang) package to generate or parse Twitter snowflake IDs
BSD 2-Clause "Simplified" License
2.98k stars 371 forks source link

Fix check for invalid encoding #34

Closed codemedic closed 3 years ago

codemedic commented 3 years ago

Fix two bugs in the decoding-map setup for base32 and base58

codemedic commented 3 years ago

@bwmarrin Any chance you can review this PR.

bwmarrin commented 3 years ago

Thanks for the fix - I'm pretty amazed that this has never been noticed before. Also, @codemedic sorry for slow response. I don't have nearly as much time to care for these projects these days!