diff --git a/src/app/(tools)/svg-to-png/svg-tool.tsx b/src/app/(tools)/svg-to-png/svg-tool.tsx index 137d778..c5c7288 100644 --- a/src/app/(tools)/svg-to-png/svg-tool.tsx +++ b/src/app/(tools)/svg-to-png/svg-tool.tsx @@ -53,8 +53,8 @@ function useSvgConverter(props: { link.href = dataURL; const svgFileName = props.imageMetadata.name ?? "svg_converted"; - // Remove the .svg extension - link.download = `${svgFileName.replace(".svg", "")}-${props.scale}x.png`; + // Remove the .svg extension (case-insensitive) + link.download = `${svgFileName.replace(/\.svg$/i, "")}-${props.scale}x.png`; link.click(); } };