Fix .jpeg links in comments
This commit is contained in:
parent
928f5145a4
commit
f29df4fbd9
|
@ -61,7 +61,7 @@ func (client *Client) FetchComments(galleryID string) ([]Comment, error) {
|
||||||
|
|
||||||
var imgurRe = regexp.MustCompile(`https?://imgur\.com/(gallery|a)?/(.*)`)
|
var imgurRe = regexp.MustCompile(`https?://imgur\.com/(gallery|a)?/(.*)`)
|
||||||
var imgurRe2 = regexp.MustCompile(`https?://imgur\.com/(.*)`)
|
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 vidRe = regexp.MustCompile(`https?://i\.imgur\.com/(.*)\.(mp4|webm)`)
|
||||||
var vidFormatRe = regexp.MustCompile(`\.(mp4|webm)`)
|
var vidFormatRe = regexp.MustCompile(`\.(mp4|webm)`)
|
||||||
var iImgurRe = regexp.MustCompile(`https?://i\.imgur\.com`)
|
var iImgurRe = regexp.MustCompile(`https?://i\.imgur\.com`)
|
||||||
|
|
Loading…
Reference in New Issue