mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
Don't filter subdomains.
This commit is contained in:
parent
78888c3728
commit
13ec32b1c9
@ -54,7 +54,7 @@ export const refFilter = (data, { domain, domainOnly, raw }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (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));
|
return data.filter(({ x }) => isValidRef(x) && !regex.test(x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user