Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3840412

Browse files
committed
Fix to regex for testing/compaare.py::compare
1 parent 41ec465 commit 3840412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/testing/compare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def convert(filename, cache):
312312
# font-family|font-variant|font-style]
313313
# taking care of the possibility of multiple style attributes
314314
# before the font styling (i.e. opacity)
315-
r'style="[^"]*font-(size|weight|family|variant|style):',
315+
r'style="[^"]*font(|-size|-weight|-family|-variant|-style):',
316316
contents # raw contents of the svg file
317317
):
318318
# for svg.fonttype = none, we explicitly patch the font search

0 commit comments

Comments
 (0)