mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-13 19:55:02 +00:00
Removing filter on string split method for consistency
This commit is contained in:
@@ -206,10 +206,11 @@ namespace ICD.Common.Utils.Extensions
|
||||
return delimitersArray.Length == 0
|
||||
? new[] {extends}
|
||||
: extends.Split(delimitersArray.First())
|
||||
.SelectMany(s => s.Split(delimitersArray.Skip(1)))
|
||||
.Where(s => !string.IsNullOrEmpty(s));
|
||||
.SelectMany(s => s.Split(delimitersArray.Skip(1)));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Removes whitespace from the string.
|
||||
/// </summary>
|
||||
|
||||
@@ -158,6 +158,9 @@ namespace ICD.Common.Utils
|
||||
|
||||
foreach (string line in progInfo.Split(new[] {"\n\r", "\r\n", "\n", "\r"}))
|
||||
{
|
||||
if (string.IsNullOrEmpty(line))
|
||||
continue;
|
||||
|
||||
string[] pair = line.Split(':', 2).ToArray();
|
||||
|
||||
if (pair.Length < 2)
|
||||
|
||||
Reference in New Issue
Block a user