Fix .jpeg links in comments

This commit is contained in:
video-prize-ranch 2023-08-10 16:16:42 +00:00
parent 928f5145a4
commit f29df4fbd9
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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`)