From 225e960f7dd3591939741b015120d09385bd8726 Mon Sep 17 00:00:00 2001 From: LouisSzeto Date: Tue, 23 Jul 2024 10:40:41 +0800 Subject: [PATCH] url test improvement --- URL Test/Program.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/URL Test/Program.cs b/URL Test/Program.cs index 3f9fedd163..639eceb436 100644 --- a/URL Test/Program.cs +++ b/URL Test/Program.cs @@ -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))