I noticed this while opening an 8.7.x label or connect label in the connect 1.3.2 framework using JavaScript. I was testing for a 450 Twin Turbo LabelWriter. I believe that the regular expression used during retrieval of the label XML is incorrect as the XML comes back invalid. This was actually causing me a CORS error during printing.
var label = dymo.label.framework.openLabelFile(labelFileName);
var labelXml = label.getLabelXml();
I noticed this while opening an 8.7.x label or connect label in the connect 1.3.2 framework using JavaScript. I was testing for a 450 Twin Turbo LabelWriter. I believe that the regular expression used during retrieval of the label XML is incorrect as the XML comes back invalid. This was actually causing me a CORS error during printing.
The problem occurs here:
If the regular expression is changed so that it will now stop at the end of the tag and it is no longer eager, the sample code works:
return node.replaceAll(/<Color ([^>]+?)\/>/g, "<Color $1> </Color>");
To test this, simply create an eclipse / circle shape on the label. Here is the label XML that was causing me problems: