Bug fix in Gerber parser. Removed requiring the 0 in D0x.

This commit is contained in:
Juan Pablo Caram
2014-03-18 09:27:24 -04:00
parent 942e274597
commit fb261d64b3

View File

@@ -688,7 +688,7 @@ class Gerber (Geometry):
# G01 - Linear interpolation plus flashes
# Operation code (D0x) missing is deprecated... oh well I will support it.
self.lin_re = re.compile(r'^(?:G0?(1))?(?:X(-?\d+))?(?:Y(-?\d+))?(?:D0([123]))?\*$')
self.lin_re = re.compile(r'^(?:G0?(1))?(?:X(-?\d+))?(?:Y(-?\d+))?(?:D0?([123]))?\*$')
self.setlin_re = re.compile(r'^(?:G0?1)\*')