From fb261d64b3e5325d430a91abd4458dd064a4cbdf Mon Sep 17 00:00:00 2001 From: Juan Pablo Caram Date: Tue, 18 Mar 2014 09:27:24 -0400 Subject: [PATCH] Bug fix in Gerber parser. Removed requiring the 0 in D0x. --- camlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camlib.py b/camlib.py index 6a52f67..2223393 100644 --- a/camlib.py +++ b/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)\*')