diff options
author | jaseg <git@jaseg.de> | 2023-10-26 00:36:24 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-10-26 00:36:24 +0200 |
commit | a35125b123bb0c645f6e06c97287e2fb6ef2d6cb (patch) | |
tree | e1d0390f452d02ce7642985b9b6885cdec6d5e2f /gerbonara/layers.py | |
parent | 31af2b260c660f53c3846056c466167b5177beb3 (diff) | |
download | gerbonara-a35125b123bb0c645f6e06c97287e2fb6ef2d6cb.tar.gz gerbonara-a35125b123bb0c645f6e06c97287e2fb6ef2d6cb.tar.bz2 gerbonara-a35125b123bb0c645f6e06c97287e2fb6ef2d6cb.zip |
Fix all failing tests that don't involve kicad-cli
Diffstat (limited to 'gerbonara/layers.py')
-rw-r--r-- | gerbonara/layers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gerbonara/layers.py b/gerbonara/layers.py index 461d500..3e9997b 100644 --- a/gerbonara/layers.py +++ b/gerbonara/layers.py @@ -736,7 +736,7 @@ class LayerStack: tags = []
layer_transform = f'translate(0 {bounds[0][1] + bounds[1][1]}) scale(1 -1)'
for (side, use), layer in reversed(self.graphic_layers.items()):
- if re.match(side_re, side) and (fg := colors.get(f'{side} {use}')):
+ if re.fullmatch(side_re, side) and (fg := colors.get(f'{side} {use}')):
tags.append(tag('g', list(layer.svg_objects(svg_unit=svg_unit, fg=fg, bg="white", tag=Tag)),
**stroke_attrs, id=f'l-{side}-{use}', transform=layer_transform))
|