Skip to content

Commit

Permalink
fix update scope
Browse files Browse the repository at this point in the history
fix uuid scope to pass uuids with uppercase.  Which was already before the last update.
  • Loading branch information
EmadAdly authored Apr 15, 2018
1 parent a28f708 commit 6925aa4
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-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/', $uuid);

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

0 comments on commit 6925aa4

Please sign in to comment.