Skip to content

Commit 47cac1a

Browse files
author
Simon Planinschek
committed
Handle some cases where the svg attribute is not formatted correctly
1 parent d2505b9 commit 47cac1a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

generator.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ async function getSVGFile(icon, version) {
8080
.replace('height="24"', '')
8181
.replace('width="24"', '{...props}')
8282
.replace(/class/g, 'className')
83+
.replace(/enable-background/g, 'enableBackground')
84+
.replace(/clip-rule/g, 'clipRule')
85+
.replace(/fill-rule/g, 'fillRule')
8386
}
8487

8588
/**

0 commit comments

Comments
 (0)