fix: fix an issue where use of except causes phone numbers with repeat digits to be improperly truncated

This commit is contained in:
Jack Kanarish
2018-11-01 17:28:27 -04:00
parent 11cff4f5bb
commit d084553600

View File

@@ -162,8 +162,9 @@ namespace ICD.Common.Utils.Extensions
if (characters == null)
throw new ArgumentNullException("characters");
var cSet = characters.ToIcdHashSet();
return new string(extends.Except(characters).ToArray());
return new string(extends.Where(c => !cSet.Contains(c)).ToArray());
}
/// <summary>