chore(lint): use strings.EqualFold in jobs output format check

This commit is contained in:
2026-09-23 18:48:07 +02:00
parent 2f69205aa0
commit 278d488363
+1 -1
View File
@@ -573,7 +573,7 @@ func (j *Job) validate() []string {
e = append(e, "command \"templ\" does not support database output") e = append(e, "command \"templ\" does not support database output")
} }
if j.Output != nil && j.Output.Format != "" { if j.Output != nil && j.Output.Format != "" {
if strings.ToLower(j.Output.Format) != "text" { if !strings.EqualFold(j.Output.Format, "text") {
e = append(e, "command \"templ\" accepts only output.format: text") e = append(e, "command \"templ\" accepts only output.format: text")
} }
} }