Skip to content

Commit

Permalink
fix: check for path relativity ignoring case
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-is-cute committed Aug 20, 2024
1 parent 46eace1 commit ce98f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Util/PathHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ internal static string TrimLeadingPathSeparator(string input) {
/// returned.
/// </summary>
internal static string? MakeRelativeSub(string parent, string child) {
if (!child.StartsWith(parent)) {
if (!child.StartsWith(parent, StringComparison.InvariantCultureIgnoreCase)) {
return null;
}

Expand Down

0 comments on commit ce98f0c

Please sign in to comment.