Skip to content

Commit

Permalink
allow v in mpv version string
Browse files Browse the repository at this point in the history
  • Loading branch information
sentriz committed Jan 9, 2024
1 parent a6bb935 commit e978716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jukebox/jukebox.go
Expand Up @@ -410,7 +410,7 @@ func lockr(mu *sync.RWMutex) func() {
return mu.RUnlock
}

var mpvVersionExpr = regexp.MustCompile(`mpv\s(\d+)\.(\d+)\.(\d+)`)
var mpvVersionExpr = regexp.MustCompile(`mpv\sv?(\d+)\.(\d+)\.(\d+)`)

func parseMPVVersion(version string) (major, minor, patch int) {
m := mpvVersionExpr.FindStringSubmatch(version)
Expand Down

0 comments on commit e978716

Please sign in to comment.