mirror of
https://github.com/writefreely/writefreely
synced 2024-11-10 03:24:11 +00:00
support more image formats
This commit is contained in:
parent
427f4980b9
commit
83ffea7fa0
1 changed files with 1 additions and 1 deletions
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 a new issue