From e598e3196d0482d238f724ead8e57d0096033244 Mon Sep 17 00:00:00 2001 From: Julien Bisconti Date: Mon, 13 Apr 2020 17:15:26 +0200 Subject: [PATCH] Fix exclude website list --- pull_request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pull_request.js b/pull_request.js index 90c766c..42dd88e 100644 --- a/pull_request.js +++ b/pull_request.js @@ -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) {