Skip to content

Commit cbdc09e

Browse files
author
Simon Planinschek
committed
add handler for xlink
1 parent 4d1530c commit cbdc09e

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
@@ -65,6 +65,8 @@ async function getSVGFile(icon, familyId, version) {
6565
.replace('>', '>{props.title && <title>{props.title}</title>}')
6666
.replace(/style="enableBackground:(.*?);?"/g, 'enableBackground="$1"')
6767
.replace(/style="fill:(.*?);?"/g, 'fill="$1"')
68+
.replace(/xmlns:xlink/g, 'xmlnsXlink')
69+
.replace(/xlink:href/g, 'xlinkHref')
6870
}
6971

7072
async function generateComponent(icons) {

0 commit comments

Comments
 (0)