Skip to content

Commit

Permalink
Don't include extraneous aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjohnsonpint committed Jan 15, 2016
1 parent e846f7e commit af23946
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion TimeZoneNames.DataBuilder/DataExtractor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ private void LoadZoneAliases()
continue;

var aliases = aliasAttribute.Value.Split(' ');
foreach (var alias in aliases)
if (aliases.Length == 1)
continue;

foreach (var alias in aliases.Skip(1))
_data.CldrAliases.Add(alias.ToLowerInvariant(), aliases[0]);
}
}
Expand Down

0 comments on commit af23946

Please sign in to comment.