Skip to content

Commit

Permalink
fix: ulid regex
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEdoRan committed Feb 23, 2023
1 parent 9259cb0 commit 7879157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/regexes.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const ULID_REGEX = /^[0-9a-hjkmnp-tv-zA-HJKMNP-TV-Z]{26}$/;
export const ULID_REGEX = /^[0-7][0-9a-hjkmnp-tv-zA-HJKMNP-TV-Z]{25}$/;

export const UUID_REGEX = /^[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$/;

0 comments on commit 7879157

Please sign in to comment.