in providers/linux/os.go [202:218]
func extractVersionDetails(os *types.OSInfo, version string, re *regexp.Regexp) {
keys := re.SubexpNames()
for i, match := range re.FindStringSubmatch(version) {
switch keys[i] {
case "major":
os.Major, _ = strconv.Atoi(match)
case "minor":
os.Minor, _ = strconv.Atoi(match)
case "patch":
os.Patch, _ = strconv.Atoi(match)
case "codename":
if os.Codename == "" {
os.Codename = match
}
}
}
}