We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c04e604 commit 2644a98Copy full SHA for 2644a98
grab.go
@@ -135,7 +135,7 @@ func validateImageURL(fullURL string) (string, error) {
135
urlFileName := segments[len(segments)-1]
136
allowedImageExtensions := []string{".jpg", ".jpeg", ".png"}
137
for _, suffix := range allowedImageExtensions {
138
- if strings.HasSuffix(urlFileName, suffix) {
+ if strings.HasSuffix(strings.ToLower(urlFileName), suffix) {
139
return urlFileName, nil
140
}
141
0 commit comments