Open kt3k opened 1 year ago
Currently the below errors with Error: incorrectly encoded string:
Error: incorrectly encoded string
const ULID = require('ulid') ULID.incrementBase32('ZZZ')
However, the error message seems wrong here because ZZZ is correctly encoded base32 string. I think the error message should be cannot increment this string here. This PR fixes this issue by incrementing index counter before comparing with >=0.
ZZZ
cannot increment this string
index
>=0
Currently the below errors with
Error: incorrectly encoded string
:However, the error message seems wrong here because
ZZZ
is correctly encoded base32 string. I think the error message should becannot increment this string
here. This PR fixes this issue by incrementingindex
counter before comparing with>=0
.