You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please consider the example below. The only thing I've done was to remove the last letter ('U') from the separators used by default. After removing just this one letter, the decoding function will fail to decode the string and generates an empty array instead.
long[]input=newlong[]{1021432904621883393};Hashidstarget=new Hashids(seps:"cfhistCFHIST");// default is "cfhistuCFHISTU"// Encodestringhashid= target.EncodeLong(input);// hashid will be set to "uXGMvwPWDRuwv"// Decodelong[]decoded= target.DecodeLong(hashid);// decoded will be set to an empty long[]
Assert.Equal(input, decoded);// fails
The text was updated successfully, but these errors were encountered:
Please consider the example below. The only thing I've done was to remove the last letter ('U') from the separators used by default. After removing just this one letter, the decoding function will fail to decode the string and generates an empty array instead.
The text was updated successfully, but these errors were encountered: