-
-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
bugSomething isn't workingSomething isn't working
Description
This isValid() is really useless because it returns true for any string. In a nutshell, this method only checks the length and characters, but not the ulid format.
For example:
console.log(isValid('xxxxxxxxxxxxxxxxxxxxxxxxxx')); // => trueI think the following code would be more correct for validation:
/^[0-7][0-9a-hjkmnp-tv-z]{25}$/i.test(ulid);Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working