Don't process empty strings

This commit is contained in:
Lars Brubaker 2017-12-05 10:39:08 -08:00
parent d7e9e1a59b
commit e8dcea1987
3 changed files with 9 additions and 2 deletions

View file

@ -62,6 +62,13 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
return null;
}
// if the line has no content don't process it
if (baseLine.Length == 0
|| baseLine.Trim().Length == 0)
{
return baseLine;
}
var lines = ProcessWriteRegEx(baseLine);
for (int i = 1; i < lines.Count; i++)
{