Fix images rendering

This commit is contained in:
Daniele Tonon
2023-12-24 00:39:32 +01:00
parent 857adab3f5
commit a95f13d176

View File

@@ -38,8 +38,8 @@ var (
xurls.SchemesUnofficial = []string{"http"}
return xurls.Strict()
}()
imageExtensionMatcher = regexp.MustCompile(`.*\.(png|jpg|jpeg|gif|webp)(\?.*)?$`)
videoExtensionMatcher = regexp.MustCompile(`.*\.(mp4|ogg|webm|mov)(\?.*)?$`)
imageExtensionMatcher = regexp.MustCompile(`.*\.(png|jpg|jpeg|gif|webp)(\?|\#.*)?$`)
videoExtensionMatcher = regexp.MustCompile(`.*\.(mp4|ogg|webm|mov)(\?|\#.*)?$`)
)
var kindNames = map[int]string{