Don't process empty strings
This commit is contained in:
parent
d7e9e1a59b
commit
e8dcea1987
3 changed files with 9 additions and 2 deletions
|
|
@ -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++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue