We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f8393c5 + 38f52a1 commit 82cb887Copy full SHA for 82cb887
packages/ui-elements/tools/icons-generator.js
@@ -64,7 +64,7 @@ const camelCase = (name) =>
64
const codeModifier = (code) => {
65
let newCode = code.replace(/class=/g, 'className=');
66
const openingTag = newCode.match(/<svg.*>/g)[0];
67
- const newOpeningTag = openingTag.replace('>', ' {...props}>');
+ const newOpeningTag = openingTag.replace(/>/g, ' {...props}>');
68
newCode = newCode.replace(openingTag, newOpeningTag);
69
return newCode;
70
};
0 commit comments