Explorar o código

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

Juan Pablo Caram %!s(int64=12) %!d(string=hai) anos
pai
achega
fb261d64b3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      camlib.py

+ 1 - 1
camlib.py

@@ -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)\*')