mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Don't filter subdomains.
This commit is contained in:
parent
d0ef846215
commit
1591dc246c
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue