From 39c1abef4f8ce5a746e161310fdedfca886ef5bf Mon Sep 17 00:00:00 2001 From: yelloowww <169210307+yelloowww@users.noreply.github.com> Date: Wed, 6 Nov 2024 11:37:48 +0100 Subject: [PATCH] feat(infobox): use correct capitalization in StarCraft's strategy infobox (#5036) fix(infobox): fix the matchup category in StarCraft's strategy infobox --- .../infobox/wikis/starcraft/infobox_strategy_custom.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/infobox/wikis/starcraft/infobox_strategy_custom.lua b/components/infobox/wikis/starcraft/infobox_strategy_custom.lua index d9e604fbb08..cf4d65d1c84 100644 --- a/components/infobox/wikis/starcraft/infobox_strategy_custom.lua +++ b/components/infobox/wikis/starcraft/infobox_strategy_custom.lua @@ -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 @@ -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