Don't filter subdomains.

This commit is contained in:
Mike Cao 2020-08-24 10:40:01 -07:00
parent d0ef846215
commit 1591dc246c

View File

@ -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));
}