From d2bf1b754ba4e4904a301ed32196cda55b7f7562 Mon Sep 17 00:00:00 2001 From: Frank Budinsky Date: Thu, 13 Aug 2020 18:17:26 -0400 Subject: [PATCH] Lint allow references to archive versions (#7953) --- scripts/lint_site.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lint_site.sh b/scripts/lint_site.sh index e66242c354..3067029aff 100755 --- a/scripts/lint_site.sh +++ b/scripts/lint_site.sh @@ -71,7 +71,7 @@ check_content() { FAILED=1 fi - if grep -nr -e "(https://istio.io" .; then + if grep -nrP -e "\(https://istio.io/(?!v[0-9]\.[0-9]/)" .; then echo "Ensure markdown content uses relative references to istio.io" FAILED=1 fi