Rename GetVersionAnonymousPath

This commit is contained in:
Jackson Schuster 2024-02-26 09:31:36 -08:00
parent 8a5244cdf2
commit d30c7408d7
2 changed files with 4 additions and 4 deletions

View file

@ -41,7 +41,7 @@ public class FindArchiveDiffs : Microsoft.Build.Utilities.Task
var baselineFiles = baseline.GetFileNames();
var testFiles = test.GetFileNames();
ContentDifferences =
GetDiffs(baselineFiles, testFiles, PathWithVersions.Equal, PathWithVersions.GetVersionAnonymousPath)
GetDiffs(baselineFiles, testFiles, PathWithVersions.Equal, PathWithVersions.GetVersionlessPath)
.Select(FromDiff)
.ToArray();
return true;

View file

@ -71,12 +71,12 @@ public static class PathWithVersions
return true;
}
public static string GetVersionAnonymousPath(string path)
public static string GetVersionlessPath(string path)
{
return GetVersionAnonymousPath(path.AsSpan()).ToString();
return GetVersionlessPath(path.AsSpan()).ToString();
}
public static ReadOnlySpan<char> GetVersionAnonymousPath(ReadOnlySpan<char> path)
public static ReadOnlySpan<char> GetVersionlessPath(ReadOnlySpan<char> path)
{
StringBuilder sb = new StringBuilder();
bool altered = false;