Skip to content

Commit a222274

Browse files
adam187norberttech
authored andcommitted
1 parent bb201ad commit a222274

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Matcher/UuidMatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
final class UuidMatcher extends Matcher
88
{
99
const UUID_PATTERN = '/^@uuid@$/';
10-
const UUID_FORMAT_PATTERN = '|^[\da-f]{8}-[\da-f]{4}-4[\da-f]{3}-[89ab][\da-f]{3}-[\da-f]{12}$|';
10+
const UUID_FORMAT_PATTERN = '|^[\da-f]{8}-[\da-f]{4}-[1-5][\da-f]{3}-[89ab][\da-f]{3}-[\da-f]{12}$|';
1111

1212
/**
1313
* {@inheritDoc}

tests/Matcher/UuidMatcherTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ public static function positiveCanMatchData()
6666
public static function positiveMatchData()
6767
{
6868
return array(
69+
array("21627164-acb7-11e6-80f5-76304dec7eb7", "@uuid@"),
70+
array("d9c04bc2-173f-2cb7-ad4e-e4ca3b2c273f", "@uuid@"),
71+
array("7b368038-a5ca-3aa3-b0db-1177d1761c9e", "@uuid@"),
6972
array("9f4db639-0e87-4367-9beb-d64e3f42ae18", "@uuid@"),
73+
array("1f2b1a18-81a0-5685-bca7-f23022ed7c7b", "@uuid@"),
7074
);
7175
}
7276

0 commit comments

Comments
 (0)