-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
Within my project I generated multiple cuid's through createId and within this time frame I created multiple unit tests with these examples.
I noticed that, after upgrading to v3 of this lib, my unit tests started to fail.
I found that the problem is that isCuid no requires the first character to be a-z, while previously this first character could also be a number.
Commit: 587a887
My question: has the cuid creation algorithm also changed in that first the first letter could be a number and currently not anymore, or is my test faulty and I should never have tested with the first character being a number? (because that could never have been the output).
Thank you in advance for the answer
Metadata
Metadata
Assignees
Labels
No labels