diff --git a/generator/src/main/java/kiwi/orbit/compose/generator/icons/IconsGenerator.kt b/generator/src/main/java/kiwi/orbit/compose/generator/icons/IconsGenerator.kt index 583dd6e30..dbf0a51fd 100644 --- a/generator/src/main/java/kiwi/orbit/compose/generator/icons/IconsGenerator.kt +++ b/generator/src/main/java/kiwi/orbit/compose/generator/icons/IconsGenerator.kt @@ -55,7 +55,7 @@ class IconsGenerator { .removePrefix("svg/") .replace("-", "_") .lowercase() - val filenameXml = filenameSvg.replace("svg", "xml") + val filenameXml = filenameSvg.removeSuffix(".svg").replace('.', '_') + ".xml" val outFileSvg = File(resourceOutDir.toFile(), filenameSvg) val outFileXml = File(resourceOutDir.toFile(), filenameXml)