cloudinary-api icon indicating copy to clipboard operation
cloudinary-api copied to clipboard

URLs containing multiple dots before the extension get truncated when building URLs

Open gpoole opened this issue 2 years ago • 1 comments

Public IDs containing multiple dots before the extension are getting truncated. For example, in 0.2.4 https://res.cloudinary.com/xyz/image/upload/v111111111/Folder/Name.With.Multiple.Dots.png is extracted as Folder/Name instead of Folder/Name.With.Multiple.Dots.

It looks like it's an issue with the extractPublicId regex assuming everything after the first . is the extension.

Related to #22 I think

gpoole avatar Nov 28 '22 05:11 gpoole