File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -444,8 +444,8 @@ function compressSVG(svg) {
444444 . replace ( / t i t l e = " " / g, '' ) // remove all empty titles
445445 . replace ( / s t y l e = " " / g, '' ) // remove all empty styles
446446 . replace ( / < g o b j n a m e = " \w * " o b j t y p e = " \w * " / g, '<g' ) // remove object ids
447- . replace ( / < g t r a n s f o r m = " t r a n s l a t e \( \d + , \d + \) " > < \/ g > / g, '' ) // remove all empty groups with transform
448- . replace ( / < g t r a n s f o r m = " t r a n s l a t e \( \d + , \d + \) " s t y l e = " d i s p l a y : n o n e ; " > < \/ g > / g, '' ) // remove hidden title
447+ . replace ( / < g t r a n s f o r m = " t r a n s l a t e \( [ 0 - 9 , ] + \) " > < \/ g > / g, '' ) // remove all empty groups with transform
448+ . replace ( / < g t r a n s f o r m = " t r a n s l a t e \( [ 0 - 9 , ] + \) " s t y l e = " d i s p l a y : n o n e ; " > < \/ g > / g, '' ) // remove hidden title
449449 . replace ( / < g > < \/ g > / g, '' ) ; // remove all empty groups
450450
451451 // remove all empty frame svg, typically appears in 3D drawings, maybe should be improved in frame painter itself
You can’t perform that action at this time.
0 commit comments