diff --git a/pkg/jobs/jobs.go b/pkg/jobs/jobs.go index b81dc7e..75dcba0 100644 --- a/pkg/jobs/jobs.go +++ b/pkg/jobs/jobs.go @@ -573,7 +573,7 @@ func (j *Job) validate() []string { e = append(e, "command \"templ\" does not support database output") } 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") } }