From af239460cb5566ccd11a4be87b646651e333f108 Mon Sep 17 00:00:00 2001 From: Matt Johnson Date: Thu, 14 Jan 2016 21:31:31 -0800 Subject: [PATCH] Don't include extraneous aliases --- TimeZoneNames.DataBuilder/DataExtractor.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/TimeZoneNames.DataBuilder/DataExtractor.cs b/TimeZoneNames.DataBuilder/DataExtractor.cs index 3112db0..0c85ed2 100644 --- a/TimeZoneNames.DataBuilder/DataExtractor.cs +++ b/TimeZoneNames.DataBuilder/DataExtractor.cs @@ -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]); } }