mirror of
https://github.com/strapi/strapi.git
synced 2025-07-23 09:00:19 +00:00

If you input a name/key to a bucket with a trailing whitespace, it will respect that trailing whitespace but will then fail to find the bucket. To resolve this, added a util function to check if it's a string. If so it will apply the `trim()` function to remove any unwanted whitespace, else it will return `undefined`.