Skip to content

Commit

Permalink
Merge pull request #71 from Pincheng0101/master
Browse files Browse the repository at this point in the history
Fix scan pattern
  • Loading branch information
omansour authored May 20, 2019
2 parents eeb961c + 9d44398 commit d460453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/M6Web/Component/RedisMock/RedisMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ public function scan($cursor = 0, array $options = []): array
// Matched values.
$values = [];
// Pattern, for find matched values.
$pattern = str_replace('*', '.*', sprintf('/^%s/', $match));
$pattern = str_replace('*', '.*', sprintf('/^%s$/', $match));

for($i = $cursor; $i <= $maximumValue; $i++)
{
Expand Down

0 comments on commit d460453

Please sign in to comment.