Skip to content

Commit 1d20ad8

Browse files
committed
linter: avoid false positives such as C++ lambda exprs by only detecting links starting with 'http'
1 parent 0a388fa commit 1d20ad8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/link-format-chk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ECODE=0
1010
FILES=""
1111
for fname in $(git diff --name-only HEAD $(git merge-base HEAD master)); do
1212
if [[ $fname == *.mediawiki ]]; then
13-
GRES=$(grep -n '](' $fname)
13+
GRES=$(grep -n '](http' $fname)
1414
if [ "$GRES" != "" ]; then
1515
if [ $ECODE -eq 0 ]; then
1616
>&2 echo "Github Mediawiki format writes link as [URL text], not as [text](url):"

0 commit comments

Comments
 (0)