Skip to content

Commit

Permalink
feat(infobox): use correct capitalization in StarCraft's strategy inf…
Browse files Browse the repository at this point in the history
…obox (#5036)

fix(infobox): fix the matchup category in StarCraft's strategy infobox
  • Loading branch information
yelloowww authored Nov 6, 2024
1 parent 8076eb5 commit 39c1abe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function CustomStrategy:_getCategories(race, matchups)

table.insert(categories, race .. ' ' .. informationType .. 's')

matchups = (matchups or ''):lower()
matchups = matchups or ''
if informationType == 'Build Order' then
for _, raceMatchupItem in pairs(CustomStrategy._raceMatchups()) do
if String.contains(matchups, raceMatchupItem) then
Expand All @@ -122,7 +122,7 @@ function CustomStrategy._raceMatchups()
local raceMatchups = {}
for _, faction1 in pairs(Faction.coreFactions) do
for _, faction2 in pairs(Faction.coreFactions) do
table.insert(raceMatchups, faction1 .. 'v' .. faction2)
table.insert(raceMatchups, faction1:upper() .. 'v' .. faction2:upper())
end
end

Expand Down

0 comments on commit 39c1abe

Please sign in to comment.