diff --git a/internal/cmd/validate_test.go b/internal/cmd/validate_test.go index 20c1e5c6..36230e68 100644 --- a/internal/cmd/validate_test.go +++ b/internal/cmd/validate_test.go @@ -34,7 +34,7 @@ func TestMain(m *testing.M) { os.Exit(code) } -var durationRegex = regexp.MustCompile(`\([\d.]*[µmn]s\)`) +var durationRegex = regexp.MustCompile(`\([\d.]*[µmn]?s\)`) func stripDuration(s string) string { return durationRegex.ReplaceAllString(s, "(Xs)")