mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-12 11:15:12 +00:00
fix: fix an issue where use of except causes phone numbers with repeat digits to be improperly truncated
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user