mirror of
https://github.com/bitcoin/bips.git
synced 2026-07-13 17:56:00 +00:00
script: don't raise on [url](url) in markdown grep
This commit is contained in:
@@ -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]]:"
|
||||
|
||||
Reference in New Issue
Block a user