sqids / sqids-scala

Official Scala port of Sqids. Generate short unique IDs from numbers.
https://sqids.org/scala
MIT License
7 stars 1 forks source link

Bug: Check blocked words against alphabet case-insensitively #4

Closed 4kimov closed 10 months ago

4kimov commented 11 months ago

Short version: New bug was found in the spec repo. It was filtering blocklist against the alphabet incorrectly in the constructor, and the issue showed up when using lowercase blocklist in uppercase-only alphabet.

More detailed version: See pull request #7 discussion.


New test was added to the spec: https://github.com/sqids/sqids-spec/commit/02d61161ce82df1d5c9f75f6cf468bc396e292d9 Code to fix the issue: https://github.com/sqids/sqids-spec/pull/7/commits/c9c8b2874d21ad2c93e49d3c2b737a2b65853593

jesperoman commented 10 months ago

6 should do it!