Skip to content

Commit 6ecba30

Browse files
authored
Fix inline link check in docsLint.js script (#5731)
1 parent 0ca5d41 commit 6ecba30

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎scripts/docsLint.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ pages.forEach(function checkPage (pagePath) {
2828
let inlineLinkRegex = /\[.*?\]\((.*?)\)/g;
2929
match = inlineLinkRegex.exec(content);
3030
while (match !== null) {
31-
checkLink(pagePath, match[1], 'Page does not exist');
31+
if (!checkLink(pagePath, match[1])) {
32+
addError(pagePath, match[0], 'Page does not exist');
33+
}
3234
match = inlineLinkRegex.exec(content);
3335
}
3436

0 commit comments

Comments
 (0)