mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-12 18:27:18 +03:00
fix(insights): get Windows version
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
51c16aa69f
commit
99dfb832eb
@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
// Ex: Microsoft Windows [Version 10.0.26100.1742]
|
||||
var winVerRegex = regexp.MustCompile(`Microsoft Windows \[Version ([\d\.]+)\]`)
|
||||
var winVerRegex = regexp.MustCompile(`Microsoft Windows \[.+\s([\d\.]+)\]`)
|
||||
|
||||
func getOSVersion() (version string, _ string) {
|
||||
cmd := exec.Command("cmd", "/c", "ver")
|
||||
|
Loading…
x
Reference in New Issue
Block a user