File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -520,11 +520,7 @@ public static function isUuid($value)
520
520
return false ;
521
521
}
522
522
523
- if ($ value === '00000000-0000-0000-0000-000000000000 ' ) {
524
- return true ;
525
- }
526
-
527
- return preg_match ('/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iD ' , $ value ) > 0 ;
523
+ return preg_match ('/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iD ' , $ value ) > 0 ;
528
524
}
529
525
530
526
/**
Original file line number Diff line number Diff line change @@ -965,8 +965,6 @@ public static function invalidUuidList()
965
965
['af6f8cb-c57d-11e1-9b21-0800200c9a66 ' ],
966
966
['af6f8cb0c57d11e19b210800200c9a66 ' ],
967
967
['ff6f8cb0-c57da-51e1-9b21-0800200c9a66 ' ],
968
- ['ff6f8cb0-c57d-11e1-cb21-0800200c9a66 ' ], // Invalid variant
969
- ['ff6f8cb0-c57d-61e1-9b21-0800200c9a66 ' ], // Invalid version
970
968
];
971
969
}
972
970
You can’t perform that action at this time.
0 commit comments