Skip to content

Commit

Permalink
url test improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisSzeto committed Jul 23, 2024
1 parent ae02c7e commit 225e960
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions URL Test/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,15 @@ static void Main()
errorFlag = true;
}

if (url.Contains($"/docs/"))
{
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;
}
}

if (url.Contains($"{leanIo}docs/v2/"))
{
if (leanIoErrorUrls.Any(url.Contains))
Expand Down

0 comments on commit 225e960

Please sign in to comment.