Skip to content

Commit

Permalink
fix: icon generation (#2030)
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-ico authored Jun 20, 2023
1 parent 070df35 commit 7f6b9ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/scripts/generate-icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ async function main() {
});

function JSXify(html) {
if (html.indexOf('use xlink:href')) {
return html.replace(/use xlink:href/g, 'use xlinkHref');
if (html.indexOf('xlink:href')) {
return html.replace(/xlink:href/g, 'xlinkHref');
}
return html;
}
Expand Down

0 comments on commit 7f6b9ae

Please sign in to comment.