Closed meiao closed 7 years ago
Having multiples of that character also throws the exception.
hasher.decode("AAAAAAAAA");
Hi meiao, I'll look into this issue and get back to you asap. Thanks.
Hi meiao,
This has been fixed on commit eaa4499f44226cbe7c (Issue #45). But this fix has not been released yet. As a workaround, you could build it yourself, until we release another version.
Thanks.
Just to inform a new version has been issued! 1.0.3.
I got this exception when trying to decode some bad data. This test case illustrates the exception.
And it throws this exception.
Looks like any character that is in HashIds.guards will throw this exception. Other input like "asdf" or any other character not in HashIds.guards seem to work ok.
Debugging, I noticed that on the call to _encode, usually an array with 0L is passed, but when one of those chars is used, the call is made with an empty array.