mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
fix: Fixing potential enumeration bug in StringExtensions
This commit is contained in:
parent
5afc676fbe
commit
fc234af43a
1 changed files with 1 additions and 1 deletions
|
|
@ -163,7 +163,7 @@ namespace ICD.Common.Utils.Extensions
|
||||||
if (characters == null)
|
if (characters == null)
|
||||||
throw new ArgumentNullException("characters");
|
throw new ArgumentNullException("characters");
|
||||||
|
|
||||||
return new string(extends.Where(c => !characters.Contains(c)).ToArray());
|
return new string(extends.Except(characters).ToArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue