From 6925aa47df7c26d808522a603468b50b461ac3de Mon Sep 17 00:00:00 2001 From: Emad Adly Date: Sun, 15 Apr 2018 12:02:06 +0200 Subject: [PATCH] fix update scope fix uuid scope to pass uuids with uppercase. Which was already before the last update. --- src/Uuids.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Uuids.php b/src/Uuids.php index ddafba7..ca2e8fe 100644 --- a/src/Uuids.php +++ b/src/Uuids.php @@ -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) {