Extract images with .image extension

This commit is contained in:
Matt Baer 2018-12-31 16:19:26 -05:00
parent 3ae45bc156
commit 8a07c0f0a0
1 changed files with 1 additions and 1 deletions

View File

@ -1365,7 +1365,7 @@ func (rp *RawPost) Created8601() string {
return rp.Created.Format("2006-01-02T15:04:05Z")
}
var imageURLRegex = regexp.MustCompile(`(?i)^https?:\/\/[^ ]*\.(gif|png|jpg|jpeg)$`)
var imageURLRegex = regexp.MustCompile(`(?i)^https?:\/\/[^ ]*\.(gif|png|jpg|jpeg|image)$`)
func (p *Post) extractImages() {
matches := extract.ExtractUrls(p.Content)