Skip to content

Commit 932bb07

Browse files
committed
Fix check_links script to deal with new doc ids
1 parent 8d1678d commit 932bb07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/check_links.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ for (var file in files) {
2020
var target = files[m[1]];
2121
if (!target)
2222
error(file, "Unknown target file: " + m[0]);
23-
else if (target.indexOf("[[" + m[3] + "]]") == -1)
23+
else if (m[3] != m[1].slice(3) && target.indexOf("[[" + m[3] + "]]") == -1)
2424
error(file, "Non-existing anchor: " + m[0]);
2525
}
2626
}

0 commit comments

Comments
 (0)