We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faf11d8 commit 32534c2Copy full SHA for 32534c2
scripts/check_links.sh
@@ -24,7 +24,7 @@ while IFS=: read -r filepath link; do
24
fi
25
done < <(
26
git --no-pager grep --no-color -I -o -E \
27
- '\[[^]]+\]\([^)]*/[^)]*\)|href="[^"]*/[^"]*"' \
+ '\[[^]]+\]\([^)]*/[^)]*\)|href="[^"]*/[^"]*"|src="[^"]*/[^"]*"' \
28
-- '*' \
29
':(exclude).*' \
30
':(exclude)**/.*' \
@@ -36,7 +36,9 @@ done < <(
36
| sed -E \
37
-e 's#([^:]+):\[[^]]+\]\(([^)]+)\)#\1:\2#' \
38
-e 's#([^:]+):href="([^"]+)"#\1:\2#' \
39
+ -e 's#([^:]+):src="([^"]+)"#\1:\2#' \
40
-e 's/[[:punct:]]*$//' \
41
+ | grep -Ev '\{\{' \
42
|| true
43
)
44
0 commit comments