sqids / sqids-go

Official Go port of Sqids. Generate short unique IDs from numbers.
https://sqids.org/go
MIT License
536 stars 11 forks source link

bug: Fix decode `panic` for invalid input #21

Closed peterhellberg closed 1 year ago

peterhellberg commented 1 year ago

Trying to decode an invalid ID such as "Re" using the default alphabet resulted in a panic in v0.3.3, this change should solve that isssue.