Merge pull request #2282 from kriss39/fix/mediawiki-relative-link-check

script: catch relative BIP links in mediawiki files
This commit is contained in:
Murch authored and GitHub committed 2026-09-11 12:21:15 -07:00
commit b8a614417f
1 file changed
+1 -1
+1 -1
View File
@@ -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):"