From 8d5c3ca86e6a631d51c111402d296313033be240 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sat, 11 Feb 2023 20:50:00 +0100 Subject: [PATCH] feat(pcap): remove empty lines --- Pcap/NosSmooth.Pcap/PcapNostaleClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pcap/NosSmooth.Pcap/PcapNostaleClient.cs b/Pcap/NosSmooth.Pcap/PcapNostaleClient.cs index be12080..812ae0a 100644 --- a/Pcap/NosSmooth.Pcap/PcapNostaleClient.cs +++ b/Pcap/NosSmooth.Pcap/PcapNostaleClient.cs @@ -228,7 +228,7 @@ public class PcapNostaleClient : BaseNostaleClient if (data.Length > 0) { - foreach (var line in data.Split('\n')) + foreach (var line in data.Split('\n', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries)) { var linePacket = line; if (containsPacketId) -- 2.48.1