Fix exclude website list

This commit is contained in:
Julien Bisconti 2020-04-13 17:15:26 +02:00
parent 6d070f8649
commit e598e3196d
No known key found for this signature in database
GPG Key ID: 62772C6698F736CB

View File

@ -145,7 +145,7 @@ async function main() {
};
const markdown = await fs.readFile(README, 'utf8');
let links = extract_all_links(markdown);
links = links.filter((l) => !exclude[l]); // exclude websites
links = links.filter((l) => !(exclude[l] && l.startsWith(exclude[l]))); // exclude websites
const duplicates = find_duplicates(links);
if (duplicates.length > 0) {