Skip to content

Commit 479ee88

Browse files
committed
- UUID regex updated
1 parent 9f74b71 commit 479ee88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UUID.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ final class UUID
8282
/**
8383
* Regex pattern for UUIDs
8484
*/
85-
public const PATTERN = '[a-f0-9]{8}\-[a-f0-9]{4}\-[1|3|4|5][a-f0-9]{3}\-[a-f0-9]{4}\-[a-f0-9]{12}';
85+
public const PATTERN = '[a-f0-9]{8}\-[a-f0-9]{4}\-[1345][a-f0-9]{3}\-[a-f0-9]{4}\-[a-f0-9]{12}';
8686

8787
/**
8888
* Generates a UUID based on the MD5 hash of a namespace

0 commit comments

Comments
 (0)