Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikMennen committed Mar 12, 2024
1 parent 01640b1 commit 696dbc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/OneWare.Essentials/Extensions/StringExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public static string RemoveWhitespace(this string input)

public static bool EqualPaths(this string input, string otherPath)
{
if(string.IsNullOrWhiteSpace(input) || string.IsNullOrWhiteSpace(otherPath)) return false;
return Path.GetFullPath(input).TrimEnd('\\').Equals(Path.GetFullPath(otherPath).TrimEnd('\\'),
StringComparison.InvariantCultureIgnoreCase);
}
Expand Down

0 comments on commit 696dbc0

Please sign in to comment.