Closed thadeucity closed 3 years ago
Hello! Nice! Have you considered putting this behavior under an option flag (such as consistentLength
) instead of forcing it? I think the package owner prefers an option. (I'd be happy with both approaches)
For sure, you are right, it would be better with options. I will try to implement the feature
Sent a better one on PullRequest #47
Implements a padding function when id is shorter than predicted.
Following the Issue #39
A function will calculate how long the Short ID will be with the provided alphabet and pad the result to match the predicted length.
I also implemented a test to check if the feature is working properly.