From 3a6f9f0986588d3b50e560f1060f862d9e93bb1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kry=C5=A1p=C3=ADn?= Date: Thu, 4 Jan 2024 16:14:35 +0100 Subject: [PATCH] Fix(icons): Replace all dashes in React Icons prepare --- packages/icons/scripts/prepareSvgReact.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {