From 8268d40e58d4ca018f980b6f0ba7cdb49f9c3942 Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Fri, 10 Jul 2026 11:25:25 -0600 Subject: [PATCH] script: don't raise on [url](url) in markdown grep --- scripts/link-format-chk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/link-format-chk.sh b/scripts/link-format-chk.sh index ecf8f73f..3b03edaf 100755 --- a/scripts/link-format-chk.sh +++ b/scripts/link-format-chk.sh @@ -24,7 +24,7 @@ done < <(find . -type f -name '*.mediawiki' | sort) MARKDOWN_ECODE=0 while IFS= read -r fname; do - GRES=$(grep -nE '\[[[:space:]]*https?://[^][]*\]|\[\[(\.\./|/)?bip-[^][]*\]\]' "$fname") + GRES=$(grep -nE '\[[[:space:]]*https?://[^][[:space:]]+[[:space:]]+[^][]*\]|\[\[https?://[^][]*\]\]|\[\[(\.\./|/)?bip-[^][]*\]\]' "$fname") if [ "$GRES" != "" ]; then if [ $MARKDOWN_ECODE -eq 0 ]; then >&2 echo "Github Markdown format writes links as [text](URL), not as [URL text] or [[URL|text]]:"