MCPcopy Index your code
hub / github.com/writefreely/writefreely / extractImages

Method extractImages

posts.go:1738–1740  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1736var imageURLRegex = regexp.MustCompile(`(?i)[^ ]+\.(gif|png|jpg|jpeg|avif|avifs|webp|jxl|image)$`)
1737
1738func (p *Post) extractImages() {
1739 p.Images = extractImages(p.Content)
1740}
1741
1742func extractImages(content string) []string {
1743 matches := extract.ExtractUrls(content)

Callers 1

extractDataMethod · 0.95

Calls 1

extractImagesFunction · 0.85

Tested by

no test coverage detected