Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.Core/Extensions/PathExtensions.cs')
-rw-r--r--UVtools.Core/Extensions/PathExtensions.cs2
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);
}