diff options
Diffstat (limited to 'UVtools.Core/Extensions/PathExtensions.cs')
-rw-r--r-- | UVtools.Core/Extensions/PathExtensions.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/UVtools.Core/Extensions/PathExtensions.cs b/UVtools.Core/Extensions/PathExtensions.cs index 1b3be72..223b8c1 100644 --- a/UVtools.Core/Extensions/PathExtensions.cs +++ b/UVtools.Core/Extensions/PathExtensions.cs @@ -29,7 +29,7 @@ namespace UVtools.Core.Extensions foreach (var extension in extensions) { var dotExtension = $".{extension}"; - if (!path.EndsWith(dotExtension)) continue; + if (!path.EndsWith(dotExtension, StringComparison.OrdinalIgnoreCase)) continue; strippedExtension = extension; return path.Remove(path.Length - dotExtension.Length); } |