Skip to content

Commit 6925aa4

Browse files
authored
fix update scope
fix uuid scope to pass uuids with uppercase. Which was already before the last update.
1 parent a28f708 commit 6925aa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Uuids.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected static function bootUuids()
3232
*/
3333
public function scopeUuid($query, $uuid, $first = true)
3434
{
35-
$match = preg_match('/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/', $uuid);
35+
$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);
3636

3737
if (!is_string($uuid) || $match !== 1)
3838
{

0 commit comments

Comments
 (0)