Skip to content

Commit 305b1af

Browse files
committed
fix: regexp
1 parent 630549f commit 305b1af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/binary.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ export type UUIDExtended = {
312312
};
313313

314314
const UUID_BYTE_LENGTH = 16;
315-
const UUID_WITHOUT_DASHES = /^[0-F]{32}$/i;
316-
const UUID_WITH_DASHES = /^[0-F]{8}-[0-F]{4}-[0-F]{4}-[0-F]{4}-[0-F]{12}$/i;
315+
const UUID_WITHOUT_DASHES = /^[0-9A-F]{32}$/i;
316+
const UUID_WITH_DASHES = /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i;
317317

318318
/**
319319
* A class representation of the BSON UUID type.

0 commit comments

Comments
 (0)