From 1d20ad8a42a6463dccfc6ca83dfd0aa6bdc01b47 Mon Sep 17 00:00:00 2001 From: Karl-Johan Alm Date: Mon, 20 Jan 2020 14:07:27 +0900 Subject: linter: avoid false positives such as C++ lambda exprs by only detecting links starting with 'http' --- scripts/link-format-chk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/link-format-chk.sh b/scripts/link-format-chk.sh index 86f28be..e3f0f6d 100755 --- a/scripts/link-format-chk.sh +++ b/scripts/link-format-chk.sh @@ -10,7 +10,7 @@ ECODE=0 FILES="" for fname in $(git diff --name-only HEAD $(git merge-base HEAD master)); do if [[ $fname == *.mediawiki ]]; then - GRES=$(grep -n '](' $fname) + GRES=$(grep -n '](http' $fname) if [ "$GRES" != "" ]; then if [ $ECODE -eq 0 ]; then >&2 echo "Github Mediawiki format writes link as [URL text], not as [text](url):" -- cgit v1.2.3