mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +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:
parent
11cff4f5bb
commit
d084553600
1 changed files with 2 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue