Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
dadrian committed Sep 27, 2023
1 parent c970385 commit 143b4f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
}
}
}
Expand Down

0 comments on commit 143b4f2

Please sign in to comment.