Closed stctheproducer closed 1 month ago
The same problem here
I just realized the function call takes in a minLength
and the default is 24. I guess, I'll have to be explicit about that or just use a custom regex pattern in the code.
I am using v2.2.0
cuid.isCuid('undefined') // true
unfortunately, the string (NOT the value), "undefined"
is indeed a valid cuid.
That's just the nature of a very large domain of random alphanumeric characters.
It is working as intended, but perhaps we could hand-code some common exceptions, like "undefined".
There's a bug with the validation function. It's returning true regardless of the value.
Expected
Actual Results
I'm running node
v18.17.0
.