From ce98f0c92c1f916ec2e676547dacbf5b12ee87aa Mon Sep 17 00:00:00 2001 From: Anna Date: Tue, 20 Aug 2024 17:27:30 -0400 Subject: [PATCH] fix: check for path relativity ignoring case --- Util/PathHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Util/PathHelper.cs b/Util/PathHelper.cs index a926272..795d9a7 100644 --- a/Util/PathHelper.cs +++ b/Util/PathHelper.cs @@ -31,7 +31,7 @@ internal static string TrimLeadingPathSeparator(string input) { /// returned. /// internal static string? MakeRelativeSub(string parent, string child) { - if (!child.StartsWith(parent)) { + if (!child.StartsWith(parent, StringComparison.InvariantCultureIgnoreCase)) { return null; }