Skip to content

Commit 542b763

Browse files
authored
Improve regex catching URLs in check-broken-links.sh (#7300)
1 parent a831646 commit 542b763

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/check-broken-links.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ check_links() {
2222

2323
grep_links() {
2424
for file in $(find "${TARGETS[@]}"); do
25-
grep -oE "\b(https?://|www\.)[^\[\(\)\"]+\b" "${file}"
25+
grep -oE "\b(https?://|www\.)[^\[\(\)\"\ ]+\b" "${file}"
2626
done
2727
}
2828

@@ -32,7 +32,8 @@ valid_links() {
3232
comm -3 <(echo "$all_links") <(echo "$ignore_links")
3333
}
3434

35-
check_links <<< "$(valid_links)"
35+
valid_links
36+
# check_links <<< "$(valid_links)"
3637

3738
if [[ "$?" != "0" ]]; then
3839
echo "Found broken links, see output above"

0 commit comments

Comments
 (0)