From 13ec32b1c932217aea66e55945e56efd3b3f5e67 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Mon, 24 Aug 2020 10:40:01 -0700 Subject: [PATCH] Don't filter subdomains. --- lib/filters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filters.js b/lib/filters.js index 6c5a0294..ad72024f 100644 --- a/lib/filters.js +++ b/lib/filters.js @@ -54,7 +54,7 @@ export const refFilter = (data, { domain, domainOnly, raw }) => { }; if (raw) { - const regex = new RegExp(`http[s]?://([^.]+.)?${domain}`); + const regex = new RegExp(`http[s]?://${domain}`); return data.filter(({ x }) => isValidRef(x) && !regex.test(x)); }