Skip to content

Commit

Permalink
Update scopeUuid
Browse files Browse the repository at this point in the history
update `scopeUuid` method to match `uuid` with lowercase.
  • Loading branch information
EmadAdly authored Apr 13, 2018
1 parent 8990d35 commit a28f708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uuids.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected static function bootUuids()
*/
public function scopeUuid($query, $uuid, $first = true)
{
$match = preg_match('/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/', $uuid);
$match = preg_match('/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/', $uuid);

if (!is_string($uuid) || $match !== 1)
{
Expand Down

0 comments on commit a28f708

Please sign in to comment.