Skip to content

Commit

Permalink
Adjust casing of THREAT subtitle
Browse files Browse the repository at this point in the history
  • Loading branch information
dharmab committed Oct 26, 2024
1 parent 150b53a commit d54b9fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/composer/threat.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ import (
func (c *composer) ComposeThreatCall(call brevity.ThreatCall) NaturalLanguageResponse {
group := c.ComposeGroup(call.Group)
callsignList := strings.ToUpper(strings.Join(call.Callsigns, ", "))

return NaturalLanguageResponse{
Subtitle: fmt.Sprintf("%s, %s", callsignList, group.Subtitle),
Subtitle: fmt.Sprintf("%s, %s", callsignList, strings.ToLower(group.Subtitle[:1])+group.Subtitle[1:]),
Speech: fmt.Sprintf("%s, %s", callsignList, group.Speech),
}
}

0 comments on commit d54b9fd

Please sign in to comment.