Skip to content

Commit

Permalink
Fixes URL Tester Logic to Verify Docs URL Without Version
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCatarino committed Aug 1, 2024
1 parent f60fc40 commit 5ff8f1b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions URL Test/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,10 @@ static void Main()
errorFlag = true;
}
if (url.Contains($"/docs/"))
if (url.Contains($"{root}docs/") && !url.Contains("/docs/v1/") && !url.Contains("/docs/v2/"))
{
if (!url.Contains($"/docs/v2/"))
{
Log.Error($"deprecated docs:\n\t{url}\n\t[\n\t\t{string.Join("\n\t\t", files)}\n\t]");
errorFlag = true;
}
Log.Error($"deprecated docs:\n\t{url}\n\t[\n\t\t{string.Join("\n\t\t", files)}\n\t]");
errorFlag = true;
}
if (url.Contains($"{leanIo}docs/v2/"))
Expand Down

0 comments on commit 5ff8f1b

Please sign in to comment.