onevcat / Kingfisher

A lightweight, pure-Swift library for downloading and caching images from the web.
MIT License
23.13k stars 2.64k forks source link

UsesHashedFileNameWithAutoExtAndProcessor does not retrieve the correct file extension. #2250

Closed freezy7 closed 3 months ago

freezy7 commented 4 months ago

Hello, I found when use autoExtAfterHashedFileName = true, the original method var ext: String? of finding the last "." to determine the extension is not effective because the field after the "@" symbol may contain a "com.onevcat.Kingfisher.xxx" and even include decimal points.

hope this PR is helpful.