From 383d01b734205f53ff105e021418641688646e2d Mon Sep 17 00:00:00 2001 From: Neil Dorin Date: Thu, 10 Feb 2022 13:11:13 -0700 Subject: [PATCH] fix(essentials): Fixes regex lines check in delimiter loop --- Pepperdash Core/Pepperdash Core/Comm/CommunicationGather.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pepperdash Core/Pepperdash Core/Comm/CommunicationGather.cs b/Pepperdash Core/Pepperdash Core/Comm/CommunicationGather.cs index eb49a46..5c4ed71 100644 --- a/Pepperdash Core/Pepperdash Core/Comm/CommunicationGather.cs +++ b/Pepperdash Core/Pepperdash Core/Comm/CommunicationGather.cs @@ -146,7 +146,7 @@ namespace PepperDash.Core foreach (var delimiter in StringDelimiters) { var lines = Regex.Split(str, delimiter); - if (lines.Length == 0) + if (lines.Length == 1) continue; for (int i = 0; i < lines.Length - 1; i++)