From f29df4fbd9c3ab5de188a75163540c05274bb163 Mon Sep 17 00:00:00 2001 From: video-prize-ranch Date: Thu, 10 Aug 2023 16:16:42 +0000 Subject: [PATCH] Fix .jpeg links in comments --- api/comments.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/comments.go b/api/comments.go index 20b2530..3e9c31d 100644 --- a/api/comments.go +++ b/api/comments.go @@ -61,7 +61,7 @@ func (client *Client) FetchComments(galleryID string) ([]Comment, error) { var imgurRe = regexp.MustCompile(`https?://imgur\.com/(gallery|a)?/(.*)`) var imgurRe2 = regexp.MustCompile(`https?://imgur\.com/(.*)`) -var imgRe = regexp.MustCompile(`https?://i\.imgur\.com/(.*)\.(png|gif|jpg|webp)`) +var imgRe = regexp.MustCompile(`https?://i\.imgur\.com/(.*)\.(png|gif|jpe?g|webp)`) var vidRe = regexp.MustCompile(`https?://i\.imgur\.com/(.*)\.(mp4|webm)`) var vidFormatRe = regexp.MustCompile(`\.(mp4|webm)`) var iImgurRe = regexp.MustCompile(`https?://i\.imgur\.com`)