Skip to content

Commit

Permalink
fix(string): updates ulid regex to match all possible ULID values
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocleite committed Mar 20, 2024
1 parent 702061d commit 6fcba2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/modules/string.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ describe('string', () => {
describe(`ulid`, () => {
it('generates a valid ULID', () => {
const ulid = faker.string.ulid();
const regex = /^[0-2][0-9A-HJKMNP-TV-Z]{25}$/;
const regex = /^[0-7][0-9A-HJKMNP-TV-Z]{25}$/;
expect(ulid).toMatch(regex);
});
});
Expand Down

0 comments on commit 6fcba2c

Please sign in to comment.