Skip to content

Commit 32534c2

Browse files
authored
Update check_links.sh
1 parent faf11d8 commit 32534c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/check_links.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ while IFS=: read -r filepath link; do
2424
fi
2525
done < <(
2626
git --no-pager grep --no-color -I -o -E \
27-
'\[[^]]+\]\([^)]*/[^)]*\)|href="[^"]*/[^"]*"' \
27+
'\[[^]]+\]\([^)]*/[^)]*\)|href="[^"]*/[^"]*"|src="[^"]*/[^"]*"' \
2828
-- '*' \
2929
':(exclude).*' \
3030
':(exclude)**/.*' \
@@ -36,7 +36,9 @@ done < <(
3636
| sed -E \
3737
-e 's#([^:]+):\[[^]]+\]\(([^)]+)\)#\1:\2#' \
3838
-e 's#([^:]+):href="([^"]+)"#\1:\2#' \
39+
-e 's#([^:]+):src="([^"]+)"#\1:\2#' \
3940
-e 's/[[:punct:]]*$//' \
41+
| grep -Ev '\{\{' \
4042
|| true
4143
)
4244

0 commit comments

Comments
 (0)