diff --git a/smartctl.go b/smartctl.go index 472cd01..5d5a936 100644 --- a/smartctl.go +++ b/smartctl.go @@ -63,7 +63,9 @@ func extractDiskName(input string) string { return strings.Join(name, "_") } - return "" + + // If the regex doesn't match, return the entire input string + return input } // NewSMARTctl is smartctl constructor