From a0824c00a17d62c3f8b858b9a46d824242cf0f6d Mon Sep 17 00:00:00 2001 From: Sebastian Bauer <75776786+yax-lakam-tuun@users.noreply.github.com> Date: Mon, 15 May 2023 19:36:47 +0000 Subject: [PATCH] [#29] Keep case of svg/pdf file --- ConvertFrom-Svg.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ConvertFrom-Svg.ps1 b/ConvertFrom-Svg.ps1 index 30a8b61..595c43b 100644 --- a/ConvertFrom-Svg.ps1 +++ b/ConvertFrom-Svg.ps1 @@ -50,7 +50,7 @@ if ($SvgFiles.Length -eq -0) { } foreach ($Svg in $SvgFiles) { - $Pdf = $Svg.ToLower().Replace('.svg', '.pdf') + $Pdf = $Svg.Replace('.svg', '.pdf').Replace('.SVG', '.pdf') # inkscape's exit codes are not reliable so we print everything always # (see https://gitlab.com/inkscape/inkscape/-/issues/270)