I added this because the current regex would pick up an image variant (e.g. /public) as a query and include it in the transform string (?public=undefined). But this change could potentially affect other cloudflare_image urls if I'm not understanding how their transformation queries work.
Should fix #111
I wrote this pretty quick, fyi, as a patch for a project where I only need to support
imagedelivery.net
images.Flagging the added filter here that removes empty transformation queries.
I added this because the current regex would pick up an image variant (e.g.
/public
) as a query and include it in the transform string (?public=undefined
). But this change could potentially affect other cloudflare_image urls if I'm not understanding how their transformation queries work.