Skip to content

Commit

Permalink
Fix code scanning alert no. 13: Incomplete string escaping or encoding (
Browse files Browse the repository at this point in the history
RocketChat#684)

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 8ba15a5 commit 38f52a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui-elements/tools/icons-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const camelCase = (name) =>
const codeModifier = (code) => {
let newCode = code.replace(/class=/g, 'className=');
const openingTag = newCode.match(/<svg.*>/g)[0];
const newOpeningTag = openingTag.replace('>', ' {...props}>');
const newOpeningTag = openingTag.replace(/>/g, ' {...props}>');
newCode = newCode.replace(openingTag, newOpeningTag);
return newCode;
};
Expand Down

0 comments on commit 38f52a1

Please sign in to comment.