summaryrefslogtreecommitdiff
path: root/gerbonara/rs274x.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-05-21 15:29:18 +0200
committerjaseg <git@jaseg.de>2022-05-21 15:29:18 +0200
commite422243a6e76d0b798ae8f175a717c193be4d22a (patch)
tree40f2de58c06baa42d45f1d47bf9ca7d111bcb6be /gerbonara/rs274x.py
parentc127c89fa3a6dd957b2eb66660905dc84751c2b2 (diff)
downloadgerbonara-e422243a6e76d0b798ae8f175a717c193be4d22a.tar.gz
gerbonara-e422243a6e76d0b798ae8f175a717c193be4d22a.tar.bz2
gerbonara-e422243a6e76d0b798ae8f175a717c193be4d22a.zip
Fix layer stack SVG export
Diffstat (limited to 'gerbonara/rs274x.py')
-rw-r--r--gerbonara/rs274x.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerbonara/rs274x.py b/gerbonara/rs274x.py
index ea1ea1d..5bfcc3f 100644
--- a/gerbonara/rs274x.py
+++ b/gerbonara/rs274x.py
@@ -533,7 +533,7 @@ class GerberParser:
'eof': r"M0?[02]",
'ignored': r"(?P<stmt>M01)",
# NOTE: The official spec says names can be empty or contain commas. I think that doesn't make sense.
- 'attribute': r"(?P<eagle_garbage>G04 #@! %)?(?P<type>TF|TA|TO|TD)(?P<name>[._$a-zA-Z][._$a-zA-Z0-9]*)(,(?P<value>.*))",
+ 'attribute': r"(?P<eagle_garbage>G04 #@! %)?(?P<type>TF|TA|TO|TD)(?P<name>[._$a-zA-Z][._$a-zA-Z0-9]*)?(,(?P<value>.*))?",
# Eagle file attributes handled above.
'comment': r"G0?4(?P<comment>[^*]*)",
}