From 43bd57b707de8c7d5b006095710103fde0abb30a Mon Sep 17 00:00:00 2001 From: Kanan <93033289+kriss39@users.noreply.github.com> Date: Fri, 11 Sep 2026 17:16:07 +0400 Subject: [PATCH] script: catch relative BIP links in mediawiki files --- 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 8dcd5adf..0b5637a5 100755 --- a/scripts/link-format-chk.sh +++ b/scripts/link-format-chk.sh @@ -9,7 +9,7 @@ ECODE=0 MEDIAWIKI_ECODE=0 while IFS= read -r fname; do - GRES=$(grep -nE '\]\((https?://|\.\./bip-|/bip-)' "$fname") + GRES=$(grep -nE '\]\((https?://|((\.\.?/)+|/)?bip-)' "$fname") if [ "$GRES" != "" ]; then if [ $MEDIAWIKI_ECODE -eq 0 ]; then >&2 echo "GitHub Mediawiki format writes links as [URL text], not as [text](URL):"