Skip to content

Allow passing cloud name to Cloudex.Url.for/2? #29

@nathanl

Description

@nathanl

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])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions