Skip to content

Commit eca2949

Browse files
committed
Perf: early bail out more filter pattern
1 parent aa94118 commit eca2949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Build/lib/parse-filter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ export async function processFilterRules(
133133
parentSpan: Span,
134134
filterRulesUrl: string,
135135
fallbackUrls?: string[] | null,
136-
_ttl: number | null = null,
137136
allowThirdParty = false
138137
): Promise<{ white: string[], black: string[], foundDebugDomain: boolean }> {
139138
const [white, black, warningMessages] = await parentSpan.traceChild(`process filter rules: ${filterRulesUrl}`).traceAsyncFn(async (span) => {
@@ -256,6 +255,7 @@ const kwfilter = createKeywordFilter([
256255
'$popunder',
257256
'$cname',
258257
'$frame',
258+
'$domain',
259259
// some bad syntax
260260
'^popup'
261261
]);

0 commit comments

Comments
 (0)