Skip to content

Commit

Permalink
Fix UUID pattern (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospassos authored Oct 4, 2022
1 parent acd5c07 commit e782a9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Matcher/UuidMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class UuidMatcher extends Matcher
/**
* @var string
*/
public const UUID_PATTERN = '[\da-f]{8}-[\da-f]{4}-[1-6][\da-f]{3}-[89ab][\da-f]{3}-[\da-f]{12}';
public const UUID_PATTERN = '[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}';

/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion tests/Matcher/UuidMatcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public static function positiveMatchData()
['9f4db639-0e87-4367-9beb-d64e3f42ae18', '@uuid@'],
['1f2b1a18-81a0-5685-bca7-f23022ed7c7b', '@uuid@'],
['1ebb5050-b028-616a-9180-0a00ac070060', '@uuid@'],
['00000000-0000-0000-0000-000000000000', '@uuid@'],
];
}

Expand All @@ -53,7 +54,6 @@ public static function negativeMatchData()
['9f4db6390e8743679bebd64e3f42ae18', '@uuid@'],
['9f4db6390e87-4367-9beb-d64e-3f42ae18', '@uuid@'],
['9f4db639-0e87-4367-9beb-d64e3f42ae1g', '@uuid@'],
['9f4db639-0e87-0367-9beb-d64e3f42ae18', '@uuid@'],
];
}

Expand Down

0 comments on commit e782a9e

Please sign in to comment.