Skip to content

Commit e782a9e

Browse files
authored
Fix UUID pattern (#400)
1 parent acd5c07 commit e782a9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Matcher/UuidMatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ final class UuidMatcher extends Matcher
1818
/**
1919
* @var string
2020
*/
21-
public const UUID_PATTERN = '[\da-f]{8}-[\da-f]{4}-[1-6][\da-f]{3}-[89ab][\da-f]{3}-[\da-f]{12}';
21+
public const UUID_PATTERN = '[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}';
2222

2323
/**
2424
* @var string

tests/Matcher/UuidMatcherTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public static function positiveMatchData()
3030
['9f4db639-0e87-4367-9beb-d64e3f42ae18', '@uuid@'],
3131
['1f2b1a18-81a0-5685-bca7-f23022ed7c7b', '@uuid@'],
3232
['1ebb5050-b028-616a-9180-0a00ac070060', '@uuid@'],
33+
['00000000-0000-0000-0000-000000000000', '@uuid@'],
3334
];
3435
}
3536

@@ -53,7 +54,6 @@ public static function negativeMatchData()
5354
['9f4db6390e8743679bebd64e3f42ae18', '@uuid@'],
5455
['9f4db6390e87-4367-9beb-d64e-3f42ae18', '@uuid@'],
5556
['9f4db639-0e87-4367-9beb-d64e3f42ae1g', '@uuid@'],
56-
['9f4db639-0e87-0367-9beb-d64e3f42ae18', '@uuid@'],
5757
];
5858
}
5959

0 commit comments

Comments
 (0)