From e422243a6e76d0b798ae8f175a717c193be4d22a Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 21 May 2022 15:29:18 +0200 Subject: Fix layer stack SVG export --- gerbonara/rs274x.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gerbonara/rs274x.py') 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"(?PM01)", # NOTE: The official spec says names can be empty or contain commas. I think that doesn't make sense. - 'attribute': r"(?PG04 #@! %)?(?PTF|TA|TO|TD)(?P[._$a-zA-Z][._$a-zA-Z0-9]*)(,(?P.*))", + 'attribute': r"(?PG04 #@! %)?(?PTF|TA|TO|TD)(?P[._$a-zA-Z][._$a-zA-Z0-9]*)?(,(?P.*))?", # Eagle file attributes handled above. 'comment': r"G0?4(?P[^*]*)", } -- cgit