From 143b4f29bfd7e9d9b5c7c0d2367de92d7a6423a4 Mon Sep 17 00:00:00 2001 From: David Adrian Date: Wed, 27 Sep 2023 15:31:06 -0600 Subject: [PATCH] Minor tweaks --- ..._underscore_permissible_in_dnsname_if_valid_when_replaced.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v3/lints/cabf_br/lint_underscore_permissible_in_dnsname_if_valid_when_replaced.go b/v3/lints/cabf_br/lint_underscore_permissible_in_dnsname_if_valid_when_replaced.go index b8928e582..2861410f0 100644 --- a/v3/lints/cabf_br/lint_underscore_permissible_in_dnsname_if_valid_when_replaced.go +++ b/v3/lints/cabf_br/lint_underscore_permissible_in_dnsname_if_valid_when_replaced.go @@ -49,7 +49,7 @@ func (l *UnderscorePermissibleInDNSNameIfValidWhenReplaced) Execute(c *x509.Cert } replaced := strings.ReplaceAll(label, "_", "-") if !util.IsLDHLabel(replaced) { - return &lint.LintResult{Status: lint.Error, Details: fmt.Sprintf("When all underscores (_) in '%s' are replaced with hypens (-) the result is '%s' which not a valid LDH label", label, replaced)} + return &lint.LintResult{Status: lint.Error, Details: fmt.Sprintf("When all underscores (_) in %q are replaced with hypens (-) the result is %q which not a valid LDH label", label, replaced)} } } }