mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 21:24:58 +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
|
return delimitersArray.Length == 0
|
||||||
? new[] {extends}
|
? new[] {extends}
|
||||||
: extends.Split(delimitersArray.First())
|
: extends.Split(delimitersArray.First())
|
||||||
.SelectMany(s => s.Split(delimitersArray.Skip(1)))
|
.SelectMany(s => s.Split(delimitersArray.Skip(1)));
|
||||||
.Where(s => !string.IsNullOrEmpty(s));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Removes whitespace from the string.
|
/// Removes whitespace from the string.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -158,6 +158,9 @@ namespace ICD.Common.Utils
|
|||||||
|
|
||||||
foreach (string line in progInfo.Split(new[] {"\n\r", "\r\n", "\n", "\r"}))
|
foreach (string line in progInfo.Split(new[] {"\n\r", "\r\n", "\n", "\r"}))
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrEmpty(line))
|
||||||
|
continue;
|
||||||
|
|
||||||
string[] pair = line.Split(':', 2).ToArray();
|
string[] pair = line.Split(':', 2).ToArray();
|
||||||
|
|
||||||
if (pair.Length < 2)
|
if (pair.Length < 2)
|
||||||
|
|||||||
Reference in New Issue
Block a user