Skip to content

Commit

Permalink
case insensitive name check
Browse files Browse the repository at this point in the history
  • Loading branch information
lineville committed Dec 18, 2023
1 parent bd5c9e8 commit 0466266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/delegates.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func formatMatchScore(match Match, playerName string) string {
}
scoreString += ")"

if strings.Contains(winner, playerName) {
if strings.Contains(strings.ToLower(winner), strings.ToLower(playerName)) {
return greenStyle.Render("\n ✅ " + scoreString)
} else {
return redStyle.Render("\n ❌ " + scoreString)
Expand Down

0 comments on commit 0466266

Please sign in to comment.