Skip to content

Commit 040c70f

Browse files
committed
add fix to replace style tags with svg props
1 parent eccc43e commit 040c70f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

generator.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ async function getSVGFile(icon, version) {
9191
.replace(/clip-rule/g, 'clipRule')
9292
.replace(/fill-rule/g, 'fillRule')
9393
.replace('>', '>{props.title && <title>{props.title}</title>}')
94+
.replace(/style="enableBackground:(.*?);?"/g, 'enableBackground="$1"')
95+
.replace(/style="fill:(.*?);?"/g, 'fill="$1"')
9496
}
9597

9698
/**

0 commit comments

Comments
 (0)