function filter_teams_by_group(teams, groups, group)
{
return teams.filter(function(team) {
- return groups[group].indexOf(team.shortname) != -1;
+ return groups[group].indexOf(team.shortname) != -1 || groups[group].indexOf(team.mediumname) != -1;
});
}