File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
src/Symfony/Component/Routing Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ enum Requirement
2424 public const UID_BASE58 = '[1-9A-HJ-NP-Za-km-z]{22} ' ;
2525 public const UID_RFC4122 = '[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12} ' ;
2626 public const ULID = '[0-7][0-9A-HJKMNP-TV-Z]{25} ' ;
27- public const UUID = '[0-9a-f]{8}-[0-9a-f]{4}-[1 -6][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12} ' ;
27+ public const UUID = '[0-9a-f]{8}-[0-9a-f]{4}-[13 -6][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12} ' ;
2828 public const UUID_V1 = '[0-9a-f]{8}-[0-9a-f]{4}-1[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12} ' ;
2929 public const UUID_V3 = '[0-9a-f]{8}-[0-9a-f]{4}-3[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12} ' ;
3030 public const UUID_V4 = '[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12} ' ;
Original file line number Diff line number Diff line change @@ -272,6 +272,7 @@ public function testUuidOK(string $uuid)
272272 * ["e55a29be-ba25-46e0-a5e5-85b78a6f9a1"]
273273 * ["e55a29bh-ba25-46e0-a5e5-85b78a6f9a11"]
274274 * ["e55a29beba2546e0a5e585b78a6f9a11"]
275+ * ["21902510-bc96-21ec-8422-0242ac120002"]
275276 */
276277 public function testUuidKO (string $ uuid )
277278 {
You can’t perform that action at this time.
0 commit comments