Module:LuaTemplateBlueprint: Difference between revisions

// via Wikitext Extension for VSCode
Tag: Reverted
// via Wikitext Extension for VSCode
Tag: Manual revert
Line 754: Line 754:
             for country in string.gmatch(args.country, "[^;]+") do
             for country in string.gmatch(args.country, "[^;]+") do
                 local trimmed = country:match("^%s*(.-)%s*$")
                 local trimmed = country:match("^%s*(.-)%s*$")
                 local region = getCountryData().getRegionByCountry(trimmed, template._errorContext)
                 local region = getCountryData().getRegionByCountry(trimmed)
                 if region and region ~= "(Unrecognized)" and not seen[region] then
                 if region and region ~= "(Unrecognized)" and not seen[region] then
                     table.insert(regions, region)
                     table.insert(regions, region)