mirror of
https://github.com/writeas/writefreely
synced 2025-01-24 19:20:47 +01:00
Merge pull request #930 from tkngaejcpi/develop
support more image formats
This commit is contained in:
commit
9ece6682ef
2
posts.go
2
posts.go
@ -1669,7 +1669,7 @@ func (rp *RawPost) Updated8601() string {
|
||||
return rp.Updated.Format("2006-01-02T15:04:05Z")
|
||||
}
|
||||
|
||||
var imageURLRegex = regexp.MustCompile(`(?i)[^ ]+\.(gif|png|jpg|jpeg|image)$`)
|
||||
var imageURLRegex = regexp.MustCompile(`(?i)[^ ]+\.(gif|png|jpg|jpeg|avif|avifs|webp|jxl|image)$`)
|
||||
|
||||
func (p *Post) extractImages() {
|
||||
p.Images = extractImages(p.Content)
|
||||
|
Loading…
Reference in New Issue
Block a user