Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: to network modifier #4524

Merged
merged 15 commits into from
Jan 24, 2025
Merged
Prev Previous commit
Next Next commit
fix: invalid use of Domains.parse
seia-soto committed Jan 23, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit c65e50e3bdbd276dcd6d4b5a208d8caff3cdff04
5 changes: 4 additions & 1 deletion packages/adblocker/src/filters/network.ts
Original file line number Diff line number Diff line change
@@ -745,7 +745,10 @@ export default class NetworkFilter implements IFilter {
denyallowEntities.add(part);
}
}
denyallow = Domains.parse(Array.from(denyallowEntities), { delimiter: '|', debug });
denyallow = Domains.parse(Array.from(denyallowEntities).join('|'), {
delimiter: '|',
debug,
});
if (denyallow === undefined) {
return null;
}