cloudex
cloudex copied to clipboard
Allow passing cloud name to `Cloudex.Url.for/2`?
Great library, thanks! 👍 😄
Would you consider a PR to accept the cloud name as a parameter to Cloudex.Url.for/2, leaving the configured value as the default?
I'm currently working around not having this by replacing the cloud name in the returned URL.
[start, rest] = Regex.split(
~r/(http|https):\/\/res.cloudinary.com\/(?<cloud_name>\w+)\/.*/,
url, on: [:cloud_name]
)
Enum.join([start, desired_cloud_name, rest])
Hi,
Sorry for the slow response, slipped my mind :/ Yes, a PR to override the cloud name would be fine :)
Gerard.
Hi @nathanl,
Wondering if this is still something you would like to change or need ?
Gerard.
It's not an urgent need - we're working around it right now. I just haven't gotten around to making a PR yet. :)