mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 14:24:27 +01:00
Fix images rendering
This commit is contained in:
4
utils.go
4
utils.go
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user