Skip to content

Commit

Permalink
Fix declaration file on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
xjarvik committed Mar 26, 2023
1 parent 48f61cd commit 01d0c52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FlatSharpDelta.Compiler/ReflectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ static class IDeclarationFilePropertyExtensions
public static bool DeclarationFilePathsAreEqual(string path1, string path1Base, string path2, string path2Base)
{
path1 = path1.Replace("\\", "/").Replace("/:/", "/").TrimStart('/');
path1Base = path1Base.Replace("\\", "/").Replace("/:/", "/").TrimStart('/');
path1Base = path1Base.Replace("\\", "/").Replace("/:/", "/");
path2 = path2.Replace("\\", "/").Replace("/:/", "/").TrimStart('/');
path2Base = path2Base.Replace("\\", "/").Replace("/:/", "/").TrimStart('/');
path2Base = path2Base.Replace("\\", "/").Replace("/:/", "/");

return Path.GetFullPath(path1, path1Base) == Path.GetFullPath(path2, path2Base);
}
Expand Down

0 comments on commit 01d0c52

Please sign in to comment.