From 8a07c0f0a0093c12d558e5f4a71208690cde7e51 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Mon, 31 Dec 2018 16:19:26 -0500 Subject: [PATCH] Extract images with .image extension --- posts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posts.go b/posts.go index cc1295c..a8d8c40 100644 --- a/posts.go +++ b/posts.go @@ -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)