[FIX] test: do not check external links in doc

This commit is contained in:
Aaron Bohy
2019-10-21 09:47:20 +02:00
parent f6d6da8393
commit da6c24bbca
+4
View File
@@ -54,6 +54,10 @@ interface FileData {
}
function isLinkValid(link: MarkDownLink, current: FileData, files: FileData[]): boolean {
if (link.link.startsWith('http')) {
// no check on external links
return true;
}
const parts = link.link.split("#");
const currentParts = current.name.split("/");
const path = currentParts.length > 1 ? currentParts[0] + "/" : "";