mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 22:34:25 +01:00
Add mov to supported video
This commit is contained in:
2
utils.go
2
utils.go
@@ -194,7 +194,7 @@ func ReplaceURLsWithTags(line string) string {
|
||||
}
|
||||
|
||||
// Match and replace mp4 URLs with <video> tag
|
||||
videoExtensions := []string{".mp4", ".ogg", ".webm"}
|
||||
videoExtensions := []string{".mp4", ".ogg", ".webm", ".mov"}
|
||||
for _, extension := range videoExtensions {
|
||||
regexPattern := fmt.Sprintf(`\s*(https?://\S+%s)\s*`, extension)
|
||||
regex := regexp.MustCompile(regexPattern)
|
||||
|
||||
Reference in New Issue
Block a user