diff --git a/packages/icons/scripts/prepareSvgReact.js b/packages/icons/scripts/prepareSvgReact.js index f5d8e202cc..17bb16bb6d 100644 --- a/packages/icons/scripts/prepareSvgReact.js +++ b/packages/icons/scripts/prepareSvgReact.js @@ -10,7 +10,7 @@ const toPascalCase = (string) => .replace(/\w+/g, (word) => { return word[0].toUpperCase() + word.slice(1).toLowerCase(); }) - .replace('-', ''); + .replaceAll('-', ''); const prepareSvgForReactComponent = (srcDir, distDir) => { fs.readdir(srcDir, (err, files) => {