Skip to content

Commit

Permalink
Remove regex case insensitivity modifier in UUID detection to speed i…
Browse files Browse the repository at this point in the history
…t up (#50067)
  • Loading branch information
maximal committed Feb 13, 2024
1 parent 67616d5 commit d3533e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Str.php
Expand Up @@ -542,7 +542,7 @@ public static function isUuid($value)
return false;
}

return preg_match('/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iD', $value) > 0;
return preg_match('/^[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}$/D', $value) > 0;
}

/**
Expand Down

0 comments on commit d3533e1

Please sign in to comment.